[pypy-svn] r55966 - pypy/branch/2.5-features/pypy/translator/goal

bgola at codespeak.net bgola at codespeak.net
Thu Jun 19 18:05:08 CEST 2008


Author: bgola
Date: Thu Jun 19 18:05:07 2008
New Revision: 55966

Modified:
   pypy/branch/2.5-features/pypy/translator/goal/app_main.py
Log:
Passing the failng test for -W option

Modified: pypy/branch/2.5-features/pypy/translator/goal/app_main.py
==============================================================================
--- pypy/branch/2.5-features/pypy/translator/goal/app_main.py	(original)
+++ pypy/branch/2.5-features/pypy/translator/goal/app_main.py	Thu Jun 19 18:05:07 2008
@@ -249,7 +249,7 @@
         elif arg in ('-k', '--oldstyle'):
             oldstyle_classes = True
         elif arg.startswith('-W'):
-            arg = arg.replace("-W", "")
+            arg = arg[2:]
             if not arg:
                 i += 1
                 if i >= len(argv):



More information about the Pypy-commit mailing list