diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-18 11:38:21 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-18 11:38:21 +0100 |
| commit | 09ca0107689c6219ba311be58134407e49125235 (patch) | |
| tree | ebf0cc8fe28275188a40a6de208059c58b0b51b5 | |
| parent | 5ec0405a09c4b05b7ee6c58bf52a06290143d788 (diff) | |
Removed an unecessary function.
It was introduced by the refactoring in 5a4e63e6 and made redundant by
the refactoring in 18934677.
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 3b4ff4c5dd..dd87972d5b 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -344,15 +344,13 @@ class DatabaseWrapper(BaseDatabaseWrapper): def init_connection_state(self): pass - def _sqlite_create_connection(self): - conn_params = self.get_connection_params() - self.connection = self.get_new_connection(conn_params) - self.init_connection_state() - connection_created.send(sender=self.__class__, connection=self) - def _cursor(self): if self.connection is None: - self._sqlite_create_connection() + conn_params = self.get_connection_params() + self.connection = self.get_new_connection(conn_params) + self.init_connection_state() + connection_created.send(sender=self.__class__, connection=self) + return self.connection.cursor(factory=SQLiteCursorWrapper) def check_constraints(self, table_names=None): |
