mirror of https://github.com/django/django.git
Fixed flake8 issues.
This commit is contained in:
parent
56ab5f52c7
commit
c726598c3d
|
@ -4,7 +4,7 @@ import weakref
|
||||||
|
|
||||||
from django.utils.six.moves import xrange
|
from django.utils.six.moves import xrange
|
||||||
|
|
||||||
if sys.version_info < (3,4):
|
if sys.version_info < (3, 4):
|
||||||
from .weakref_backports import WeakMethod
|
from .weakref_backports import WeakMethod
|
||||||
else:
|
else:
|
||||||
from weakref import WeakMethod
|
from weakref import WeakMethod
|
||||||
|
|
|
@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
|
||||||
install-script = scripts/rpm-install.sh
|
install-script = scripts/rpm-install.sh
|
||||||
|
|
||||||
[flake8]
|
[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
|
ignore=E128,E501,W601
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
|
|
|
@ -388,7 +388,6 @@ class PostgresNewConnectionTests(TestCase):
|
||||||
new_connection = new_connections[DEFAULT_DB_ALIAS]
|
new_connection = new_connections[DEFAULT_DB_ALIAS]
|
||||||
try:
|
try:
|
||||||
new_connection.settings_dict['AUTOCOMMIT'] = False
|
new_connection.settings_dict['AUTOCOMMIT'] = False
|
||||||
cursor = new_connection.cursor()
|
|
||||||
self.assertFalse(new_connection.get_autocommit())
|
self.assertFalse(new_connection.get_autocommit())
|
||||||
finally:
|
finally:
|
||||||
new_connection.close()
|
new_connection.close()
|
||||||
|
|
Loading…
Reference in New Issue