Use explicit relative import for an, ehm, relative import.

This commit is contained in:
Thomas Wouters 2006-04-18 21:41:36 +00:00
parent 7ea7d90dbe
commit 08a1a9fac7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ print "t4.sub.subsub.spam =", spam
("t5 __init__"+os.extsep+"py", "import t5.foo"),
("t5 string"+os.extsep+"py", "print __name__, 'loading'; spam = 1"),
("t5 foo"+os.extsep+"py",
"print __name__, 'loading'; import string; print string.spam"),
"print __name__, 'loading'; from . import string; print string.spam"),
],
"""
import t5