Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tweaked the dummy database backend initialisation.

In order to report more comphrehensible tracebacks, remove the super()
constructor call, since passing args to object.__init__ ends badly. So some
subclassing possibilities are now removed, but it's the "dummy" backend, so
we can make some compromises.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5eccc596525c396941cec8e985ebf7fa418e2026 1 parent bd6fc48
Malcolm Tredinnick authored March 12, 2009

Showing 1 changed file with 3 additions and 5 deletions. Show diff stats Hide diff stats

  1. 8  django/db/backends/dummy/base.py
8  django/db/backends/dummy/base.py
@@ -28,22 +28,20 @@ class DatabaseOperations(BaseDatabaseOperations):
28 28
 
29 29
 class DatabaseClient(BaseDatabaseClient):
30 30
     runshell = complain
31  
-    
  31
+
32 32
 class DatabaseIntrospection(BaseDatabaseIntrospection):
33 33
     get_table_list = complain
34 34
     get_table_description = complain
35 35
     get_relations = complain
36 36
     get_indexes = complain
37  
-    
38  
-class DatabaseWrapper(object):    
  37
+
  38
+class DatabaseWrapper(object):
39 39
     operators = {}
40 40
     cursor = complain
41 41
     _commit = complain
42 42
     _rollback = ignore
43 43
 
44 44
     def __init__(self, *args, **kwargs):
45  
-        super(DatabaseWrapper, self).__init__(*args, **kwargs)
46  
-
47 45
         self.features = BaseDatabaseFeatures()
48 46
         self.ops = DatabaseOperations()
49 47
         self.client = DatabaseClient(self)

0 notes on commit 5eccc59

Please sign in to comment.
Something went wrong with that request. Please try again.