BPO | [28922](https://bugs.python.org/issue28922) --- | :--- Nosy | @progval, @berkerpeksag Superseder | bpo-2350: 'exceptions' import fixer Files | [fix_import_exceptions.py](https://bugs.python.org/file45817/fix_import_exceptions.py "Uploaded as text/plain at 2016-12-09.16:11:43 by @progval"): Fixer for "import exceptions" *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: ```python assignee = None closed_at = created_at = labels = ['3.7', 'type-feature', 'expert-2to3'] title = 'Add fixer for "import exceptions"' updated_at = user = 'https://github.com/ProgVal' ``` bugs.python.org fields: ```python activity = actor = 'berker.peksag' assignee = 'none' closed = True closed_date = closer = 'berker.peksag' components = ['2to3 (2.x to 3.x conversion tool)'] creation = creator = 'Valentin.Lorentz' dependencies = [] files = ['45817'] hgrepos = [] issue_num = 28922 keywords = [] message_count = 2.0 messages = ['282787', '282799'] nosy_count = 2.0 nosy_names = ['Valentin.Lorentz', 'berker.peksag'] pr_nums = [] priority = 'normal' resolution = 'duplicate' stage = 'resolved' status = 'closed' superseder = '2350' type = 'enhancement' url = 'https://bugs.python.org/issue28922' versions = ['Python 3.5', 'Python 3.6', 'Python 3.7'] ```
Activity
progval commentedon Dec 9, 2016
Hi,
Here is a fixer to remove "import exceptions" from Python 2 code and replace "exceptions.X" with "X".
Valentin
berkerpeksag commentedon Dec 9, 2016
Thanks for the report and for the patch! This is a duplicate of bpo-2350.
Note that we accept patches from hg.python.org, not standalone Python files. See http://cpython-devguide.readthedocs.io/en/latest/patch.html for details.