diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-15 22:54:39 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-15 22:54:39 +0000 |
commit | 971a012ce178d1b50b272bc035bfcc795e73c781 (patch) | |
tree | bb3651debb9a00d817847dafc90cceea24b0bc4f /Python/traceback.c | |
parent | 9cb37fc5d02564b618aceb90d0f51dd56b1b505b (diff) | |
download | cpython-git-971a012ce178d1b50b272bc035bfcc795e73c781.tar.gz |
Update the encoding package's search function to use absolute imports when
calling __import__. This helps make the expected search locations for encoding
modules be more explicit.
One could use an explicit value for __path__ when making the call to __import__
to force the exact location searched for encodings. This would give the most
strict search path possible if one is worried about malicious code being
imported. The unfortunate side-effect of that is that if __path__ was modified
on 'encodings' on purpose in a safe way it would not be picked up in future
__import__ calls.
Diffstat (limited to 'Python/traceback.c')
0 files changed, 0 insertions, 0 deletions