From 4abadc4872d96c993b472eb23ae0b0a7d24fc3e5 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Tue, 17 Feb 2015 16:35:46 +0000 Subject: [PATCH] [1.8.x] Removed unused foreign_key_re variables in MySQL/Oracle DB backends Backport of e9282747a4ba99adc7e0f677b3a897830df51732 from master --- django/db/backends/mysql/introspection.py | 3 --- django/db/backends/oracle/introspection.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/django/db/backends/mysql/introspection.py b/django/db/backends/mysql/introspection.py index 8e07457aee..47f1a65488 100644 --- a/django/db/backends/mysql/introspection.py +++ b/django/db/backends/mysql/introspection.py @@ -1,4 +1,3 @@ -import re from collections import namedtuple from MySQLdb.constants import FIELD_TYPE @@ -11,8 +10,6 @@ from django.utils.encoding import force_text FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('extra',)) -foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)") - class DatabaseIntrospection(BaseDatabaseIntrospection): data_types_reverse = { diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index c058418ec3..6048c878d8 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -1,5 +1,3 @@ -import re - import cx_Oracle from django.db.backends.base.introspection import ( @@ -7,8 +5,6 @@ from django.db.backends.base.introspection import ( ) from django.utils.encoding import force_text -foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)") - class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps type objects to Django Field types.