Show More
@@ -397,13 +397,13 b' mod_attrs = [' | |||
|
397 | 397 | |
|
398 | 398 | |
|
399 | 399 | def append_obj(module, d, name, obj, autoload=False): |
|
400 |
|
|
|
400 | in_module = hasattr(obj, "__module__") and obj.__module__ == module.__name__ | |
|
401 | 401 | if autoload: |
|
402 | 402 | # check needed for module global built-ins |
|
403 |
if not |
|
|
403 | if not in_module and name in mod_attrs: | |
|
404 | 404 | return False |
|
405 | 405 | else: |
|
406 |
if not |
|
|
406 | if not in_module: | |
|
407 | 407 | return False |
|
408 | 408 | |
|
409 | 409 | key = (module.__name__, name) |
General Comments 0
You need to be logged in to leave comments.
Login now