summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2015-02-05 13:25:34 -0500
committerTim Graham <timograham@gmail.com>2015-02-06 09:35:08 -0500
commitfc8e1e0c107fe5fc8c82f01dfabfa9b7a196a67c (patch)
tree2479a9a9fdc399e9ec6d640d9eaca191e66e6c6c /django/db
parent232a1d297c8431a77f3dbb9bcf453d17eb5e3315 (diff)
[1.8.x] Fixed E265 comment style
Backport of db77915c9fd35a203edd8206f702ee4082f04d4a from master
Diffstat (limited to 'django/db')
-rw-r--r--django/db/backends/base/base.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/django/db/backends/base/base.py b/django/db/backends/base/base.py
index cbc4983046..5c0e8755ea 100644
--- a/django/db/backends/base/base.py
+++ b/django/db/backends/base/base.py
@@ -84,7 +84,7 @@ class BaseDatabaseWrapper(object):
"will be returned.".format(self.queries_log.maxlen))
return list(self.queries_log)
- ##### Backend-specific methods for creating connections and cursors #####
+ # ##### Backend-specific methods for creating connections and cursors #####
def get_connection_params(self):
"""Returns a dict of parameters suitable for get_new_connection."""
@@ -102,7 +102,7 @@ class BaseDatabaseWrapper(object):
"""Creates a cursor. Assumes that a connection is established."""
raise NotImplementedError('subclasses of BaseDatabaseWrapper may require a create_cursor() method')
- ##### Backend-specific methods for creating connections #####
+ # ##### Backend-specific methods for creating connections #####
def connect(self):
"""Connects to the database. Assumes that the connection is closed."""
@@ -130,7 +130,7 @@ class BaseDatabaseWrapper(object):
with self.wrap_database_errors:
self.connect()
- ##### Backend-specific wrappers for PEP-249 connection methods #####
+ # ##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()
@@ -152,7 +152,7 @@ class BaseDatabaseWrapper(object):
with self.wrap_database_errors:
return self.connection.close()
- ##### Generic wrappers for PEP-249 connection methods #####
+ # ##### Generic wrappers for PEP-249 connection methods #####
def cursor(self):
"""
@@ -204,7 +204,7 @@ class BaseDatabaseWrapper(object):
else:
self.connection = None
- ##### Backend-specific savepoint management methods #####
+ # ##### Backend-specific savepoint management methods #####
def _savepoint(self, sid):
with self.cursor() as cursor:
@@ -222,7 +222,7 @@ class BaseDatabaseWrapper(object):
# Savepoints cannot be created outside a transaction
return self.features.uses_savepoints and not self.get_autocommit()
- ##### Generic savepoint management methods #####
+ # ##### Generic savepoint management methods #####
def savepoint(self):
"""
@@ -270,7 +270,7 @@ class BaseDatabaseWrapper(object):
"""
self.savepoint_state = 0
- ##### Backend-specific transaction management methods #####
+ # ##### Backend-specific transaction management methods #####
def _set_autocommit(self, autocommit):
"""
@@ -278,7 +278,7 @@ class BaseDatabaseWrapper(object):
"""
raise NotImplementedError('subclasses of BaseDatabaseWrapper may require a _set_autocommit() method')
- ##### Generic transaction management methods #####
+ # ##### Generic transaction management methods #####
def get_autocommit(self):
"""
@@ -328,7 +328,7 @@ class BaseDatabaseWrapper(object):
"An error occurred in the current transaction. You can't "
"execute queries until the end of the 'atomic' block.")
- ##### Foreign key constraints checks handling #####
+ # ##### Foreign key constraints checks handling #####
@contextmanager
def constraint_checks_disabled(self):
@@ -365,7 +365,7 @@ class BaseDatabaseWrapper(object):
"""
pass
- ##### Connection termination handling #####
+ # ##### Connection termination handling #####
def is_usable(self):
"""
@@ -404,7 +404,7 @@ class BaseDatabaseWrapper(object):
self.close()
return
- ##### Thread safety handling #####
+ # ##### Thread safety handling #####
def validate_thread_sharing(self):
"""
@@ -421,7 +421,7 @@ class BaseDatabaseWrapper(object):
"thread id %s."
% (self.alias, self._thread_ident, thread.get_ident()))
- ##### Miscellaneous #####
+ # ##### Miscellaneous #####
def prepare_database(self):
"""