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

py3 prep: relative imports and exception syntax #32

Merged
merged 1 commit into from Mar 22, 2020

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Mar 22, 2020

This runs two more fixes that are safe to merge in python2 for continued
progress towards #29:

  1. Converting except T, R to except T as R. Both work in python2, but only
    the latter works in python3.
    https://docs.python.org/3.0/whatsnew/3.0.html#changed-syntax

  2. Converting module imports to relative imports.

CC @grahamc @AmineChikhaoui

This runs two more fixes that are safe to merge in python2 for continued
progress towards NixOS#29:

1. Converting `except T, R` to `except T as R`. Both work in python2, but only
   the latter works in python3.
   https://docs.python.org/3.0/whatsnew/3.0.html#changed-syntax

2. Converting module imports to relative imports.
@grahamc grahamc merged commit 9e8bfa1 into NixOS:master Mar 22, 2020
@bhipple bhipple deleted the py3prep/imports branch March 22, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants