[pypy-svn] r44916 - pypy/dist/pypy/lang/js

fijal at codespeak.net fijal at codespeak.net
Wed Jul 11 09:49:06 CEST 2007


Author: fijal
Date: Wed Jul 11 09:49:05 2007
New Revision: 44916

Modified:
   pypy/dist/pypy/lang/js/js_interactive.py
Log:
Fix stupid bug


Modified: pypy/dist/pypy/lang/js/js_interactive.py
==============================================================================
--- pypy/dist/pypy/lang/js/js_interactive.py	(original)
+++ pypy/dist/pypy/lang/js/js_interactive.py	Wed Jul 11 09:49:05 2007
@@ -123,7 +123,7 @@
     jsi = JSInterpreter()
     for filename in files:
         jsi.runcodefromfile(filename)
-    if (filename is None) or inspect:
+    if (not files) or inspect:
         jsi.interact()
 
 if __name__ == '__main__':



More information about the Pypy-commit mailing list