[Python-checkins] r45266 - python/trunk/Lib/linecache.py python/trunk/Lib/site.py (original) (raw)
neal.norwitz python-checkins at python.org
Tue Apr 11 09:21:20 CEST 2006
- Previous message: [Python-checkins] r45265 - python/trunk/Lib/inspect.py
- Next message: [Python-checkins] r45267 - python/trunk/Include/asdl.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: neal.norwitz Date: Tue Apr 11 09:21:20 2006 New Revision: 45266
Modified: python/trunk/Lib/linecache.py python/trunk/Lib/site.py Log: Adjust whitespace.
Modified: python/trunk/Lib/linecache.py
--- python/trunk/Lib/linecache.py (original) +++ python/trunk/Lib/linecache.py Tue Apr 11 09:21:20 2006 @@ -37,7 +37,7 @@ if filename in cache: return cache[filename][2] else:
return updatecache(filename,module_globals)
return updatecache(filename, module_globals)
def checkcache(filename=None): @@ -85,13 +85,13 @@ if module_globals and 'loader' in module_globals: name = module_globals.get('name') loader = module_globals['loader']
get_source = getattr(loader, 'get_source' ,None)
get_source = getattr(loader, 'get_source', None) if name and get_source: if basename.startswith(name.split('.')[-1]+'.'): try: data = get_source(name)
except (ImportError,IOError):
except (ImportError, IOError): pass else: cache[filename] = (
Modified: python/trunk/Lib/site.py
--- python/trunk/Lib/site.py (original) +++ python/trunk/Lib/site.py Tue Apr 11 09:21:20 2006 @@ -69,7 +69,7 @@ def abs__file__(): """Set all module' file attribute to an absolute path""" for m in sys.modules.values():
if hasattr(m,'__loader__'):
if hasattr(m, '__loader__'): continue # don't mess with a PEP 302-supplied __file__ try: m.__file__ = os.path.abspath(m.__file__)
- Previous message: [Python-checkins] r45265 - python/trunk/Lib/inspect.py
- Next message: [Python-checkins] r45267 - python/trunk/Include/asdl.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]