This commit is contained in:
Artur Barseghyan 2015-08-18 14:29:18 +00:00
commit 40fd91666d
2 changed files with 4 additions and 2 deletions

View file

@ -52,6 +52,6 @@ def get_template_source(name):
def check_template_syntax(template):
try:
Template(template.content)
except TemplateSyntaxError, e:
except TemplateSyntaxError as e:
return (False, e)
return (True, None)

View file

@ -5,7 +5,9 @@ from setuptools import setup, find_packages
def read(*parts):
return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
def find_version(*file_paths):