]> granicus.if.org Git - python/commit
Merged revisions 81380 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Sun, 27 Jun 2010 22:37:28 +0000 (22:37 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 27 Jun 2010 22:37:28 +0000 (22:37 +0000)
commit556d8001dfaf5c7d6b45d5d1e6d09ed7a410c8b3
tree6f723b3a2c99ce2362d697fa0ded5167a9d5e3cb
parentd7c3ed54ef8ee248958ab5626465c70b9953f9de
Merged revisions 81380 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81380 | brett.cannon | 2010-05-20 13:37:55 -0500 (Thu, 20 May 2010) | 8 lines

  Turned out that if you used explicit relative import syntax
  (e.g. from .os import sep) and it failed, import would still try the implicit
  relative import semantics of an absolute import (from os import sep). That's
  not right, so when level is negative, only do explicit relative import
  semantics.

  Fixes issue #7902. Thanks to Meador Inge for the patch.
........
Lib/test/test_import.py
Python/import.c