Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor.py can lose indentation for relative imports #47784

Closed
rupole mannequin opened this issue Aug 9, 2008 · 3 comments
Closed

refactor.py can lose indentation for relative imports #47784

rupole mannequin opened this issue Aug 9, 2008 · 3 comments

Comments

@rupole
Copy link
Mannequin

rupole mannequin commented Aug 9, 2008

BPO 3534
Nosy @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-08-10.01:45:53.059>
created_at = <Date 2008-08-09.18:16:12.950>
labels = ['expert-2to3']
title = 'refactor.py can lose indentation for relative imports'
updated_at = <Date 2008-08-10.01:45:53.058>
user = 'https://bugs.python.org/rupole'

bugs.python.org fields:

activity = <Date 2008-08-10.01:45:53.058>
actor = 'benjamin.peterson'
assignee = 'collinwinter'
closed = True
closed_date = <Date 2008-08-10.01:45:53.059>
closer = 'benjamin.peterson'
components = ['2to3 (2.x to 3.x conversion tool)']
creation = <Date 2008-08-09.18:16:12.950>
creator = 'rupole'
dependencies = []
files = []
hgrepos = []
issue_num = 3534
keywords = []
message_count = 3.0
messages = ['70947', '70954', '70956']
nosy_count = 3.0
nosy_names = ['collinwinter', 'rupole', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3534'
versions = ['Python 3.0']

@rupole
Copy link
Mannequin Author

rupole mannequin commented Aug 9, 2008

Here's an excerpt from the output when run with --verbose.

@@ -138,7 +136,7 @@

        def _MakeColorizer(self):
                ext = os.path.splitext(self.GetDocument().GetPathName())
-               import formatter
+from . import formatter
                return formatter.BuiltinPythonSourceFormatter(self, ext)

@rupole rupole mannequin assigned collinwinter Aug 9, 2008
@rupole rupole mannequin added the topic-2to3 label Aug 9, 2008
@benjaminp
Copy link
Contributor

What version of 2to3 are you using? AFAIK, this has been fixed in the trunk.

@rupole
Copy link
Mannequin Author

rupole mannequin commented Aug 10, 2008

I was using 3.0b2.
The output is correct with latest updates,
sorry for the trouble.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant