mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
07ba7d360b
Proxy __dict__ and __doc__ explicitly instead. I'm not sure which is less evil, but this seems slightly simpler than hooking all attribute accesses.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
os = <unloaded module 'os'>
|
|
os.system = <built-in function system>
|
|
os = <module 'os' from '?'>
|
|
util = <unloaded module 'util'>
|
|
util.system = <function system at 0x?>
|
|
util = <module 'mercurial.util' from '?'>
|
|
util.system = <function system at 0x?>
|
|
hgweb = <unloaded module 'hgweb'>
|
|
hgweb_mod = <unloaded module 'hgweb_mod'>
|
|
hgweb = <module 'mercurial.hgweb' from '?'>
|
|
fred = <unloaded module 're'>
|
|
remod = <unloaded module 're'>
|
|
re = <unloaded module 'sys'>
|
|
fred = <unloaded module 're'>
|
|
fred.sub = <function sub at 0x?>
|
|
fred = <proxied module 're'>
|
|
remod = <module 're' from '?'>
|
|
re = <unloaded module 'sys'>
|
|
re.stderr = <open file '<whatever>', mode 'w' at 0x?>
|
|
re = <proxied module 'sys'>
|
|
pvecproxy = <unloaded module 'pvec'>
|
|
pvecproxy.__doc__ = 'A "pvec" is ...'
|
|
pvecproxy.__name__ = 'mercurial.pvec'
|
|
pvecproxy.__dict__['__name__'] = 'mercurial.pvec'
|
|
pvecproxy = <proxied module 'pvec'>
|
|
contextlib = <unloaded module 'contextlib'>
|
|
contextlib.unknownattr = ImportError: cannot import name unknownattr
|
|
__import__('contextlib', ..., ['unknownattr']) = <module 'contextlib' from '?'>
|
|
hasattr(contextlibimp, 'unknownattr') = False
|
|
node = <module 'mercurial.node' from '?'>
|