Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r86425:8e0d3ffa878f
Date: 2016-08-22 20:10 +0200
http://bitbucket.org/pypy/pypy/changeset/8e0d3ffa878f/

Log:    Win32: don't crash translation

diff --git a/pypy/module/posix/interp_scandir.py 
b/pypy/module/posix/interp_scandir.py
--- a/pypy/module/posix/interp_scandir.py
+++ b/pypy/module/posix/interp_scandir.py
@@ -8,11 +8,13 @@
 from pypy.interpreter.typedef import TypeDef, GetSetProperty
 from pypy.interpreter.baseobjspace import W_Root
 
-from pypy.module.posix.interp_posix import unwrap_fd, build_stat_result
+from pypy.module.posix.interp_posix import unwrap_fd, build_stat_result, _WIN32
 
 
 def scandir(space, w_path=None):
     "scandir(path='.') -> iterator of DirEntry objects for given path"
+    if _WIN32:
+        raise NotImplementedError("XXX WIN32")
 
     if space.is_none(w_path):
         w_path = space.newunicode(u".")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to