[Python-checkins] python/dist/src/Lib trace.py,1.12,1.13

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Fri Oct 10 19:02:04 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv376

Modified Files:
	trace.py 
Log Message:
The fullmodname() function chopped off the first character if the
module existed in the current directory.  Fix this.  Backport
candidate (I presume).


Index: trace.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/trace.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** trace.py	15 Jul 2003 10:34:02 -0000	1.12
--- trace.py	10 Oct 2003 23:02:01 -0000	1.13
***************
*** 181,185 ****
                  longest = dir
  
!     base = path[len(longest) + 1:].replace("/", ".")
      filename, ext = os.path.splitext(base)
      return filename
--- 181,189 ----
                  longest = dir
  
!     if longest:
!         base = path[len(longest) + 1:]
!     else:
!         base = path
!     base = base.replace("/", ".")
      filename, ext = os.path.splitext(base)
      return filename
***************
*** 292,295 ****
--- 296,302 ----
          """Return a coverage results file in path."""
  
+         print "path =", `path`
+         if "/arse" in path:
+             import pdb; pdb.set_trace()
          try:
              outfile = open(path, "w")





More information about the Python-checkins mailing list