Fixed flake8 issues.

This commit is contained in:
Simon Charette 2014-01-12 13:40:37 -05:00
parent 56ab5f52c7
commit c726598c3d
3 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import weakref
from django.utils.six.moves import xrange
if sys.version_info < (3,4):
if sys.version_info < (3, 4):
from .weakref_backports import WeakMethod
else:
from weakref import WeakMethod

View File

@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
install-script = scripts/rpm-install.sh
[flake8]
exclude=build,.git,./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./django/utils/lru_cache.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*
exclude=build,.git,./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./django/utils/lru_cache.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py
ignore=E128,E501,W601
[metadata]

View File

@ -388,7 +388,6 @@ class PostgresNewConnectionTests(TestCase):
new_connection = new_connections[DEFAULT_DB_ALIAS]
try:
new_connection.settings_dict['AUTOCOMMIT'] = False
cursor = new_connection.cursor()
self.assertFalse(new_connection.get_autocommit())
finally:
new_connection.close()