1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed a few trailing backslashes.

We have always been at war with trailing backslashes.
This commit is contained in:
Aymeric Augustin
2013-09-22 14:01:57 +02:00
parent ee0ef1b094
commit a5b062576b
14 changed files with 28 additions and 30 deletions

View File

@@ -524,8 +524,8 @@ class Client(RequestFactory):
not available.
"""
user = authenticate(**credentials)
if user and user.is_active \
and 'django.contrib.sessions' in settings.INSTALLED_APPS:
if (user and user.is_active and
'django.contrib.sessions' in settings.INSTALLED_APPS):
engine = import_module(settings.SESSION_ENGINE)
# Create a fake request to store login details.

View File

@@ -734,9 +734,8 @@ class TransactionTestCase(SimpleTestCase):
def _reset_sequences(self, db_name):
conn = connections[db_name]
if conn.features.supports_sequence_reset:
sql_list = \
conn.ops.sequence_reset_by_name_sql(no_style(),
conn.introspection.sequence_list())
sql_list = conn.ops.sequence_reset_by_name_sql(
no_style(), conn.introspection.sequence_list())
if sql_list:
with transaction.commit_on_success_unless_managed(using=db_name):
cursor = conn.cursor()