Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31850 Modified Files: trace.py Log Message: Fix two small bugs: (1) on Windows, pathname munging didn't work right; (2) write_results_file() didn't return a tuple of two ints when it couldn't create the file. Will backport. Index: trace.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/trace.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** trace.py 12 Feb 2004 17:35:07 -0000 1.17 --- trace.py 19 Feb 2004 19:16:50 -0000 1.18 *************** *** 184,188 **** else: base = path ! base = base.replace("/", ".") filename, ext = os.path.splitext(base) return filename --- 184,190 ---- else: base = path ! base = base.replace(os.sep, ".") ! if os.altsep: ! base = base.replace(os.altsep, ".") filename, ext = os.path.splitext(base) return filename *************** *** 298,302 **** print >> sys.stderr, ("trace: Could not open %r for writing: %s" "- skipping" % (path, err)) ! return n_lines = 0 --- 300,304 ---- print >> sys.stderr, ("trace: Could not open %r for writing: %s" "- skipping" % (path, err)) ! return 0, 0 n_lines = 0
participants (1)
-
gvanrossumļ¼ users.sourceforge.net