diff options
| author | Simon Charette <charette.s@gmail.com> | 2014-01-12 13:40:37 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2014-01-12 13:40:37 -0500 |
| commit | c726598c3da5320df88a10fc407f8df6874589b1 (patch) | |
| tree | 85b250ab6d7bec98bcea2bf424ef1ddceaa6c9e7 | |
| parent | 56ab5f52c717ad9f54f94b09b6c61568f612ba6b (diff) | |
Fixed flake8 issues.
| -rw-r--r-- | django/dispatch/dispatcher.py | 2 | ||||
| -rw-r--r-- | setup.cfg | 2 | ||||
| -rw-r--r-- | tests/backends/tests.py | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py index 7302f6428e..738d8969de 100644 --- a/django/dispatch/dispatcher.py +++ b/django/dispatch/dispatcher.py @@ -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 @@ -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] diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 6aeea34860..611aa2cb6d 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -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() |
