Show More
@@ -36,14 +36,8 b' class ShimModule(types.ModuleType):' | |||||
36 | try: |
|
36 | try: | |
37 | pak = module.__dict__[obj] |
|
37 | pak = module.__dict__[obj] | |
38 | except KeyError: |
|
38 | except KeyError: | |
39 | raise |
|
|||
40 | raise AttributeError(obj) |
|
39 | raise AttributeError(obj) | |
41 | return pak |
|
40 | return pak | |
42 | else: |
|
41 | else: | |
43 | # called with un-dotted string |
|
42 | # called with un-dotted string | |
44 | return __import__(parts[0]) |
|
43 | return __import__(parts[0]) | |
45 |
|
||||
46 | class ShimPackage(ShimModule): |
|
|||
47 | @property |
|
|||
48 | def __path__(self): |
|
|||
49 | return __import__(self._mirror).__path__ |
|
General Comments 0
You need to be logged in to leave comments.
Login now