"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/ImportManager.py" between
cheetah3-3.2.2.tar.gz and cheetah3-3.2.3.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

ImportManager.py  (cheetah3-3.2.2):ImportManager.py  (cheetah3-3.2.3)
skipping to change at line 252 skipping to change at line 252
pass pass
class BuiltinImportDirector(ImportDirector): class BuiltinImportDirector(ImportDirector):
"""Directs imports of builtin modules""" """Directs imports of builtin modules"""
def __init__(self): def __init__(self):
self.path = 'Builtins' self.path = 'Builtins'
def getmod(self, nm): def getmod(self, nm):
if nm in sys.builtin_module_names: if nm in sys.builtin_module_names:
return __import__(nm) try:
importfunc = __oldimport__
except NameError:
importfunc = __import__
return importfunc(nm)
return None return None
class FrozenImportDirector(ImportDirector): class FrozenImportDirector(ImportDirector):
"""Directs imports of frozen modules""" """Directs imports of frozen modules"""
def __init__(self): def __init__(self):
self.path = 'FrozenModules' self.path = 'FrozenModules'
def getmod(self, nm): def getmod(self, nm):
mod = None mod = None
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)