[Python-checkins] python/dist/src/Lib copy.py,1.42.8.1,1.42.8.2

aleax at users.sourceforge.net aleax at users.sourceforge.net
Sun Feb 6 08:56:21 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20725
Modified Files:
 Tag: release23-maint
	copy.py 
Log Message:
fix bug 1114776
Index: copy.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/copy.py,v
retrieving revision 1.42.8.1
retrieving revision 1.42.8.2
diff -u -d -r1.42.8.1 -r1.42.8.2
--- copy.py	25 Jan 2005 12:52:18 -0000	1.42.8.1
+++ copy.py	6 Feb 2005 07:56:18 -0000	1.42.8.2
@@ -62,8 +62,9 @@
 
 __all__ = ["Error", "copy", "deepcopy"]
 
+import inspect
 def _getspecial(cls, name):
- for basecls in cls.__mro__:
+ for basecls in inspect.getmro(cls):
 try:
 return basecls.__dict__[name]
 except:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /