Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r413:51996b35860b
Date: 2013-05-23 16:44 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/51996b35860b/

Log:    fixed a bug in fileplugin primitives

diff --git a/spyvm/plugins/fileplugin.py b/spyvm/plugins/fileplugin.py
--- a/spyvm/plugins/fileplugin.py
+++ b/spyvm/plugins/fileplugin.py
@@ -62,7 +62,7 @@
 def primitiveFileAtEnd(interp, s_frame, w_rcvr, fd):
     py_file = os.fdopen(fd)
     stat = os.fstat(fd)
-    if py_file.tell() < stat.st_size:
+    if py_file.tell() >= stat.st_size:
         return interp.space.w_true
     else:
         return interp.space.w_false
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to