fixed problem with __new__ deprecated

This commit is contained in:
mdipierro
2012-10-04 08:44:26 -05:00
parent 8945dffb0c
commit 66d9ead746
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.9 (2012-10-04 08:35:24) dev
Version 2.0.9 (2012-10-04 08:44:15) dev
+1 -1
View File
@@ -6583,7 +6583,7 @@ class DAL(object):
def __new__(cls, uri='sqlite://dummy.db', *args, **kwargs):
if uri==None and not 'singleton_code' in kwargs:
# this deal with the special case of Dummy DAL for SQLFORM.factory
return super(DAL, cls).__new__(cls, uri, *args, **kwargs)
return super(DAL, cls).__new__(cls)
if not hasattr(THREAD_LOCAL,'db_instances'):
THREAD_LOCAL.db_instances = {}
if 'singleton_code' in kwargs: