From 66d9ead746ddc6aa795c9e5263de5923b95d7910 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 4 Oct 2012 08:44:26 -0500 Subject: [PATCH] fixed problem with __new__ deprecated --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 90196dfe..2c6f6816 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-04 08:35:24) dev +Version 2.0.9 (2012-10-04 08:44:15) dev diff --git a/gluon/dal.py b/gluon/dal.py index 235b2361..7f71544c 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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: