From c726598c3da5320df88a10fc407f8df6874589b1 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sun, 12 Jan 2014 13:40:37 -0500 Subject: [PATCH] Fixed flake8 issues. --- django/dispatch/dispatcher.py | 2 +- setup.cfg | 2 +- 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 7302f6428ee..738d8969de9 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 diff --git a/setup.cfg b/setup.cfg index ef3fc9c8731..1b2e4718a12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 6aeea348603..611aa2cb6d0 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()