]> granicus.if.org Git - python/commitdiff
Use relative imports in a few places where I noticed the need.
authorGuido van Rossum <guido@python.org>
Wed, 15 Mar 2006 04:33:54 +0000 (04:33 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 15 Mar 2006 04:33:54 +0000 (04:33 +0000)
(Ideally, all packages in Python 2.5 will use the relative import
syntax for all their relative import needs.)

Lib/distutils/sysconfig.py
Lib/encodings/__init__.py

index 9bdbb16a8c442c526531fbdfd4a2177e464c378b..dc603be8b759aa82343694145969f55e956330c2 100644 (file)
@@ -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)
index 01463bc34c6a1eaaeff8692548e4196ee888ee35..ddaacb9e3f2c7af1c5818f8f13da252051649439 100644 (file)
@@ -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--'