[pypy-svn] r4804 - pypy/trunk/src/pypy/objspace

hpk at codespeak.net hpk at codespeak.net
Tue Jun 1 15:01:57 CEST 2004


Author: hpk
Date: Tue Jun  1 15:01:56 2004
New Revision: 4804

Modified:
   pypy/trunk/src/pypy/objspace/trivial.py
Log:
only export non-underscore names as exceptions 



Modified: pypy/trunk/src/pypy/objspace/trivial.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/trivial.py	(original)
+++ pypy/trunk/src/pypy/objspace/trivial.py	Tue Jun  1 15:01:56 2004
@@ -91,6 +91,8 @@
         # connections we have go in the inconvenient direction...
         
         for k in dir(exceptions):
+            if k.startswith('_'):
+                continue
             if k not in done:
                 v = getattr(exceptions, k)
                 if isinstance(v, str):



More information about the Pypy-commit mailing list