[Python-checkins] python/dist/src/Lib trace.py,1.5,1.6

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
2003年4月22日 08:35:54 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv25282
Modified Files:
	trace.py 
Log Message:
Only produce a dotted module name when writing output to a separate
directory.
Index: trace.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/trace.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** trace.py	21 Apr 2003 22:49:17 -0000	1.5
--- trace.py	22 Apr 2003 15:35:51 -0000	1.6
***************
*** 164,168 ****
 
 def fullmodname(path):
! """Return a plausible module name for the patch."""
 
 # If the file 'path' is part of a package, then the filename isn't
--- 164,168 ----
 
 def fullmodname(path):
! """Return a plausible module name for the path."""
 
 # If the file 'path' is part of a package, then the filename isn't
***************
*** 245,249 ****
 if filename == "<string>":
 continue
- modulename = fullmodname(filename)
 
 if filename.endswith(".pyc") or filename.endswith(".pyo"):
--- 245,248 ----
***************
*** 252,259 ****
--- 251,260 ----
 if coverdir is None:
 dir = os.path.dirname(os.path.abspath(filename))
+ modulename = modname(filename)
 else:
 dir = coverdir
 if not os.path.exists(dir):
 os.makedirs(dir)
+ modulename = fullmodname(filename)
 
 # If desired, get a list of the line numbers which represent

AltStyle によって変換されたページ (->オリジナル) /