Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.5
Changeset: r90898:bf7f4f9cb1f4
Date: 2017-04-01 18:24 +0200
http://bitbucket.org/pypy/pypy/changeset/bf7f4f9cb1f4/

Log:    In cpyext, skip WindowsError when reading symbols from the exception
        modules.

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -651,7 +651,7 @@
     global all_exceptions
     all_exceptions = list(exceptions.Module.interpleveldefs)
     for exc_name in all_exceptions:
-        if exc_name in ('EnvironmentError', 'IOError'):
+        if exc_name in ('EnvironmentError', 'IOError', 'WindowsError'):
             # FIXME: aliases of OSError cause a clash of names via
             # export_struct
             continue
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to