[Python-bugs-list] [ python-Bugs-586931 ] pydoc -w fails with path specified
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 07 Aug 2002 08:28:06 -0700
Bugs item #586931, was opened at 2002-07-26 06:31
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586931&group_id=5470
>Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
>Assigned to: Tim Peters (tim_one)
Summary: pydoc -w fails with path specified
Initial Comment:
[from http://bugs.debian.org/143462]
If I specify a path (ie, ./dictclient.py) and use -w, it will
fail. If -w
is not used, or a module (ie, dictclient) is specified, it
will work.
Example:
$ pydoc2.2 -w ./dictclient.py
Traceback (most recent call last):
File "/usr/bin/pydoc2.2", line 4, in ?
pydoc.cli()
File "/usr/lib/python2.2/pydoc.py", line 2074, in cli
writedoc(arg)
File "/usr/lib/python2.2/pydoc.py", line 1345, in writedoc
object = locate(key, forceload)
File "/usr/lib/python2.2/pydoc.py", line 1297, in locate
parts = split(path, '.')
File "/usr/lib/python2.2/string.py", line 117, in split
return s.split(sep, maxsplit)
AttributeError: 'module' object has no attribute 'split'
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-08-07 11:28
Message:
Logged In: YES
user_id=3066
Tim is friends with pydoc. ;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586931&group_id=5470