summaryrefslogtreecommitdiffstats
path: root/Lib/linecache.py
Commit message (Collapse)AuthorAgeFilesLines
* Linecache contains support for PEP302 loaders, but fails to deal with loadersRonald Oussoren2006-06-131-0/+4
| | | | | that return None to indicate that the module is valid but no source is available. This patch fixes that.
* Adjust whitespace.Neal Norwitz2006-04-111-3/+3
|
* Whitespace normalization.Tim Peters2006-04-111-2/+2
|
* Updated the warnings, linecache, inspect, traceback, site, and doctest modulesPhillip J. Eby2006-04-111-6/+30
| | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included.
* SF #737473: Show up-to-date source code in tracebacks always.Hye-Shik Chang2004-10-261-2/+10
| | | | | And add an optional argument 'filename' to linecache.checkcache() to enable checking caches per-file.
* Whitespace normalization.Jeremy Hylton2003-06-291-1/+1
|
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-3/+2
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Mass checkin of universal newline support.Jack Jansen2002-04-141-1/+1
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* Patch from Gordon McMillan.Tim Peters2001-05-291-5/+12
| | | | | | updatecache(): When using imputil, sys.path may contain things other than strings. Ignore such things instead of blowing up. Hard to say whether this is a bugfix or a feature ...
* a few more modules get __all__Skip Montanaro2001-01-241-0/+2
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-64/+66
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* don't print Cannot open/stat messagesGuido van Rossum1995-08-101-2/+2
|
* * Lib/linecache.py: don't crash on empty filenameGuido van Rossum1994-08-231-1/+1
| | | | | | | | | | | * Lib/macpath.py: don't return trailing colon for dirname() (XXX won't do for volume names -- but otherwise glob(':*:*.py') loops forever) * Lib/traceback.py: print SyntaxError correctly * Lib/stat.py: moved to posixstat.py; added macstat.py which has the constants for the Mac; and created new stat.py which includes the right one * Lib/urllib.py: fix caching bug (by disabling the cache)
* Search through the module search path.Guido van Rossum1992-03-271-11/+30
| | | | Add a warning to the top that this is the case.
* Initial revisionGuido van Rossum1992-01-101-0/+71