diff options
author | Tim Graham <timograham@gmail.com> | 2015-01-30 21:38:29 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-01-31 11:05:26 -0500 |
commit | 64a899dc815f1a070dc7a7c22276e8bb41e46ea6 (patch) | |
tree | 1903ab1281f0a1fee9c0a0b288b4914d4eeca7e1 /django | |
parent | 888054bff7c5878e026bac2e712d5480f7e295c7 (diff) | |
download | django-64a899dc815f1a070dc7a7c22276e8bb41e46ea6.tar.gz |
Removed PostgreSQL DatabaseWrapper._set_isolation_level().
This method is unused since 8717b0668caf00ec5e81ef5a1e31b4d7c64eee8a.
Diffstat (limited to 'django')
-rw-r--r-- | django/db/backends/postgresql_psycopg2/base.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index 37433c3987..a73d1f27bf 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -195,13 +195,6 @@ class DatabaseWrapper(BaseDatabaseWrapper): cursor.tzinfo_factory = utc_tzinfo_factory if settings.USE_TZ else None return cursor - def _set_isolation_level(self, isolation_level): - assert isolation_level in range(1, 5) # Use set_autocommit for level = 0 - if self.psycopg2_version >= (2, 4, 2): - self.connection.set_session(isolation_level=isolation_level) - else: - self.connection.set_isolation_level(isolation_level) - def _set_autocommit(self, autocommit): with self.wrap_database_errors: if self.psycopg2_version >= (2, 4, 2): |