[pypy-svn] r5511 - pypy/trunk/src/pypy/tool
lac at codespeak.net
lac at codespeak.net
Sat Jul 10 22:40:37 CEST 2004
Author: lac
Date: Sat Jul 10 22:40:36 2004
New Revision: 5511
Modified:
pypy/trunk/src/pypy/tool/utestconvert.py
Log:
ooops, calling the copy version as xxx.cp.py wasn't a good idea.
now they are xxx_cp.py
Modified: pypy/trunk/src/pypy/tool/utestconvert.py
==============================================================================
--- pypy/trunk/src/pypy/tool/utestconvert.py (original)
+++ pypy/trunk/src/pypy/tool/utestconvert.py Sat Jul 10 22:40:36 2004
@@ -211,14 +211,10 @@
optparser.add_option("-c", "--copy", action="callback",
callback=select_output,
callback_kwargs={'output':'copy'},
- help="copy files ... fn.py --> fn.cp.py")
+ help="copy files ... fn.py --> fn_cp.py")
options, args = optparser.parse_args()
-
-
-
-
output = getattr(optparser, 'output', 'stdout')
if output in ['inplace', 'copy'] and not args:
@@ -240,7 +236,7 @@
if output == 'inplace':
outfile = file(infilename, 'w+')
elif output == 'copy': # yes, just go clobber any existing .cp
- outfile = file (infilename[:-3]+ '.cp.py', 'w+')
+ outfile = file (infilename[:-3]+ '_cp.py', 'w+')
else:
outfile = sys.stdout
More information about the Pypy-commit
mailing list