Changeset 391 for python/trunk/Lib/imputil.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/imputil.py
r2 r391 52 52 53 53 def add_suffix(self, suffix, importFunc): 54 assert callable(importFunc)54 assert hasattr(importFunc, '__call__') 55 55 self.fs_imp.add_suffix(suffix, importFunc) 56 56 … … 282 282 return module 283 283 284 def _process_result(self, (ispkg, code, values), fqname): 284 def _process_result(self, result, fqname): 285 ispkg, code, values = result 285 286 # did get_code() return an actual module? (rather than a code object) 286 287 is_module = isinstance(code, _ModuleType) … … 462 463 sep = '\\' 463 464 from os2 import stat 464 elif 'mac' in names:465 from mac import stat466 def join(a, b):467 if a == '':468 return b469 if ':' not in a:470 a = ':' + a471 if a[-1:] != ':':472 a = a + ':'473 return a + b474 465 else: 475 466 raise ImportError, 'no os specific module found' … … 540 531 541 532 def add_suffix(self, suffix, importFunc): 542 assert callable(importFunc)533 assert hasattr(importFunc, '__call__') 543 534 self.suffixes.append((suffix, importFunc)) 544 535
Note:
See TracChangeset
for help on using the changeset viewer.