[Patches] [ python-Patches-785689 ] pydoc's usage should use
basename
SourceForge.net
noreply at sourceforge.net
Fri Aug 8 17:44:35 EDT 2003
Patches item #785689, was opened at 2003-08-08 23:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=785689&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc's usage should use basename
Initial Comment:
pydoc should output only the basename, not the full path.
+++ Lib/pydoc.py 2003-08-09 01:40:58.000000000 +0200
@@ -2090,7 +2090,7 @@
print value
except (getopt.error, BadUsage):
- cmd = sys.argv[0]
+ cmd = os.path.basename(sys.argv[0])
print """pydoc - the Python documentation tool
%s <name> ...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=785689&group_id=5470
More information about the Patches
mailing list