Remove django 1.9 support and fix PEP8

This commit is contained in:
David-Wobrock committed 2018-01-12 23:23:11 +01:00
1 parent dcbcb0883c
commit 317156bf2b
4 files changed
+3 -11

No files matched your search

+2 -1
View File
@@ -43,7 +43,8 @@ class MigrationLinter(object):
self.include_apps = kwargs.get('include_apps', None)
self.exclude_apps = kwargs.get('exclude_apps', None)
self.database = kwargs.get('database', None) or 'default'
self.python_exe = '{0}/bin/{1}'.format(sys.prefix, 'python') if hasattr(sys, 'real_prefix') else 'python'
self.python_exe = '{0}/bin/{1}'.format(sys.prefix, 'python') if \
hasattr(sys, 'real_prefix') else 'python'
# Initialise counters
self.nb_valid = 0