mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Merge bb9199b0be into b371cc6518
This commit is contained in:
commit
40fd91666d
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
4
setup.py
4
setup.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue