You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/05/01 10:55:32 UTC
svn commit: r165470 - /httpd/mod_python/trunk/lib/python/mod_python/util.py
Author: nlehuen
Date: Sun May 1 01:55:31 2005
New Revision: 165470
URL: http://svn.apache.org/viewcvs?rev=165470&view=rev
Log:
Changed apply_fs_data to support new-style classes as well as old-style classes.
Modified:
httpd/mod_python/trunk/lib/python/mod_python/util.py
Modified: httpd/mod_python/trunk/lib/python/mod_python/util.py
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/lib/python/mod_python/util.py?rev=165470&r1=165469&r2=165470&view=diff
==============================================================================
--- httpd/mod_python/trunk/lib/python/mod_python/util.py (original)
+++ httpd/mod_python/trunk/lib/python/mod_python/util.py Sun May 1 01:55:31 2005
@@ -399,7 +399,7 @@
# method
fc = object.im_func.func_code
expected = fc.co_varnames[1:fc.co_argcount]
- elif type(object) is ClassType:
+ elif type(object) in (TypeType,ClassType):
# class
fc = object.__init__.im_func.func_code
expected = fc.co_varnames[1:fc.co_argcount]