[Python-checkins] r61451 - sandbox/trunk/2to3/lib2to3/patcomp.py sandbox/trunk/2to3/lib2to3/pygram.py sandbox/trunk/2to3/lib2to3/refactor.py
georg.brandl
python-checkins at python.org
Mon Mar 17 20:17:40 CET 2008
Author: georg.brandl
Date: Mon Mar 17 20:17:39 2008
New Revision: 61451
Modified:
sandbox/trunk/2to3/lib2to3/patcomp.py
sandbox/trunk/2to3/lib2to3/pygram.py
sandbox/trunk/2to3/lib2to3/refactor.py
Log:
More relative imports.
Modified: sandbox/trunk/2to3/lib2to3/patcomp.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/patcomp.py (original)
+++ sandbox/trunk/2to3/lib2to3/patcomp.py Mon Mar 17 20:17:39 2008
@@ -20,8 +20,8 @@
from pgen2 import tokenize
# Really local imports
-import pytree
-import pygram
+from . import pytree
+from . import pygram
# The pattern grammar file
_PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__),
Modified: sandbox/trunk/2to3/lib2to3/pygram.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/pygram.py (original)
+++ sandbox/trunk/2to3/lib2to3/pygram.py Mon Mar 17 20:17:39 2008
@@ -7,9 +7,9 @@
import os
# Local imports
-import pytree
from pgen2 import token
from pgen2 import driver
+from . import pytree
# The grammar file
_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
Modified: sandbox/trunk/2to3/lib2to3/refactor.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/refactor.py (original)
+++ sandbox/trunk/2to3/lib2to3/refactor.py Mon Mar 17 20:17:39 2008
@@ -20,12 +20,13 @@
import logging
# Local imports
-import pytree
-import patcomp
from pgen2 import driver
from pgen2 import tokenize
-import fixes
-import pygram
+
+from . import pytree
+from . import patcomp
+from . import fixes
+from . import pygram
if sys.version_info < (2, 4):
hdlr = logging.StreamHandler()
More information about the Python-checkins
mailing list