Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Lib/imputil.py

    r2 r388  
    5252
    5353    def add_suffix(self, suffix, importFunc):
    54         assert callable(importFunc)
     54        assert hasattr(importFunc, '__call__')
    5555        self.fs_imp.add_suffix(suffix, importFunc)
    5656
     
    282282        return module
    283283
    284     def _process_result(self, (ispkg, code, values), fqname):
     284    def _process_result(self, result, fqname):
     285        ispkg, code, values = result
    285286        # did get_code() return an actual module? (rather than a code object)
    286287        is_module = isinstance(code, _ModuleType)
     
    462463        sep = '\\'
    463464        from os2 import stat
    464     elif 'mac' in names:
    465         from mac import stat
    466         def join(a, b):
    467             if a == '':
    468                 return b
    469             if ':' not in a:
    470                 a = ':' + a
    471             if a[-1:] != ':':
    472                 a = a + ':'
    473             return a + b
    474465    else:
    475466        raise ImportError, 'no os specific module found'
     
    540531
    541532    def add_suffix(self, suffix, importFunc):
    542         assert callable(importFunc)
     533        assert hasattr(importFunc, '__call__')
    543534        self.suffixes.append((suffix, importFunc))
    544535
Note: See TracChangeset for help on using the changeset viewer.