diff options
author | Guido van Rossum <guido@python.org> | 2006-03-15 04:33:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-15 04:33:54 (GMT) |
commit | 87de069e4e6387e77bafae8aba2f73a70dccc1a2 (patch) | |
tree | 204ccfecd2084d38f807d89de881c9db6958ca5a | |
parent | 903d846a69b6a837495c00b26bd4bbcb3835e26f (diff) | |
download | cpython-87de069e4e6387e77bafae8aba2f73a70dccc1a2.zip cpython-87de069e4e6387e77bafae8aba2f73a70dccc1a2.tar.gz cpython-87de069e4e6387e77bafae8aba2f73a70dccc1a2.tar.bz2 |
Use relative imports in a few places where I noticed the need.
(Ideally, all packages in Python 2.5 will use the relative import
syntax for all their relative import needs.)
-rw-r--r-- | Lib/distutils/sysconfig.py | 2 | ||||
-rw-r--r-- | Lib/encodings/__init__.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 9bdbb16..dc603be 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -16,7 +16,7 @@ import re import string import sys -from errors import DistutilsPlatformError +from .errors import DistutilsPlatformError # These are needed in a couple of spots, so just compute them once. PREFIX = os.path.normpath(sys.prefix) diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index 01463bc..ddaacb9 100644 --- a/Lib/encodings/__init__.py +++ b/Lib/encodings/__init__.py @@ -27,7 +27,8 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). """#" -import codecs, types, aliases +import codecs, types +from . import aliases _cache = {} _unknown = '--unknown--' |