Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r69705:5a8c87bf1104
Date: 2014-03-05 10:43 +0200
http://bitbucket.org/pypy/pypy/changeset/5a8c87bf1104/

Log:    make a strange error go away (don't call it with None though)

diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -137,6 +137,7 @@
 #   with other wrappers that directly handle unicode strings.
 @specialize.argtype(0)
 def open(path, flags, mode):
+    assert path is not None
     if isinstance(path, str):
         return os.open(path, flags, mode)
     else:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to