diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-18 20:51:50 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-18 20:51:50 (GMT) |
commit | 3d199af40d1c7d0068339ab1b03e8243105a4447 (patch) | |
tree | 39db5f1e9cfb165a266dc2ffad536b402ee4134a /Lib/pyclbr.py | |
parent | 4d358b5d23e69755f649dfa013a4efcf8d5f604d (diff) | |
download | cpython-3d199af40d1c7d0068339ab1b03e8243105a4447.zip cpython-3d199af40d1c7d0068339ab1b03e8243105a4447.tar.gz cpython-3d199af40d1c7d0068339ab1b03e8243105a4447.tar.bz2 |
Bow to font-lock at the end of the docstring, since it throws stuff
off.
Make sure the path paramter to readmodule() is a list before adding it
with sys.path, or the addition could fail.
Diffstat (limited to 'Lib/pyclbr.py')
-rw-r--r-- | Lib/pyclbr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py index 25fc33f..75b6a93 100644 --- a/Lib/pyclbr.py +++ b/Lib/pyclbr.py @@ -30,7 +30,7 @@ shouldn't happen often. BUGS Continuation lines are not dealt with at all and strings may confuse -the hell out of the parser, but it usually works.''' +the hell out of the parser, but it usually works.''' # ' <-- bow to font lock import os import sys @@ -99,7 +99,7 @@ def readmodule(module, path=[], inpackage=0): except ImportError: f = None if f is None: - fullpath = path + sys.path + fullpath = list(path) + sys.path f, file, (suff, mode, type) = imp.find_module(module, fullpath) if type == imp.PKG_DIRECTORY: dict = {'__path__': [file]} |