Author: Jeong YunWon <[email protected]>
Branch: 
Changeset: r76570:920fce8456cb
Date: 2015-03-25 04:10 +0900
http://bitbucket.org/pypy/pypy/changeset/920fce8456cb/

Log:    issue #2005

        After fix ``` $ ./pypy-c ../pypytest/bar.py $ ```

        Before fix ``` $ pypy ../pypytest/bar.py RPython traceback: ... (See
        #2005 for details) ```

        CPython ``` $ python ../pypytest/bar.py $ ```

diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -663,7 +663,10 @@
             if find_info:
                 stream = find_info.stream
                 if stream:
-                    stream.close()
+                    try:
+                        stream.close()
+                    except StreamErrors:
+                        pass
 
     if tentative:
         return None
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to