From 8082c75d188e395c973f52bfdf5d547c741edd03 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 30 Dec 2014 11:25:48 -0500 Subject: [PATCH] Removed db.backends methods which only call super(). --- django/db/backends/mysql/base.py | 3 --- django/db/backends/oracle/creation.py | 3 --- django/db/backends/postgresql_psycopg2/operations.py | 2 -- 3 files changed, 8 deletions(-) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index dcb22bc37c..6cfb136879 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -184,9 +184,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): atomic_transactions = False supports_column_check_constraints = False - def __init__(self, connection): - super(DatabaseFeatures, self).__init__(connection) - @cached_property def _mysql_storage_engine(self): "Internal method used in Django tests. Don't rely on this from your code" diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py index 27f0e5333b..e91cecf7d5 100644 --- a/django/db/backends/oracle/creation.py +++ b/django/db/backends/oracle/creation.py @@ -56,9 +56,6 @@ class DatabaseCreation(BaseDatabaseCreation): 'PositiveSmallIntegerField': '%(qn_column)s >= 0', } - def __init__(self, connection): - super(DatabaseCreation, self).__init__(connection) - def _create_test_db(self, verbosity=1, autoclobber=False, keepdb=False): parameters = self._get_test_db_params() cursor = self.connection.cursor() diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py index 3447bfe682..9d5b10d01a 100644 --- a/django/db/backends/postgresql_psycopg2/operations.py +++ b/django/db/backends/postgresql_psycopg2/operations.py @@ -5,8 +5,6 @@ from django.db.backends import BaseDatabaseOperations class DatabaseOperations(BaseDatabaseOperations): - def __init__(self, connection): - super(DatabaseOperations, self).__init__(connection) def date_extract_sql(self, lookup_type, field_name): # http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT