[Zope-Checkins] CVS: Zope3/lib/python/Interface - iclass.py:1.11.58.4

Jeremy Hylton jeremy@zope.com
Mon, 4 Mar 2002 18:00:09 -0500


Update of /cvs-repository/Zope3/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv12349

Modified Files:
      Tag: Zope-3x-branch
	iclass.py 
Log Message:
Put parens around list of exceptions!

Caught by pychecker.


=== Zope3/lib/python/Interface/iclass.py 1.11.58.3 => 1.11.58.4 ===
     return None
 
-
 class Interface(InterfaceBase):
     """Prototype (scarecrow) Interfaces Implementation
     """
@@ -231,7 +230,7 @@
                     # This is how cPython figures out the module of
                     # a class, but of course it does it in C. :-/
                     __module__ = currentframe().f_back.f_globals['__name__']
-                except AttributeError, KeyError:
+                except (AttributeError, KeyError):
                     pass
         self.__module__ = __module__
         Interface.__init__(self, name, bases, attrs, __doc__)