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

Minor Python 3.x improvements #71

Closed

Conversation

Stealthii
Copy link

This PR makes two small changes:

Implement nested using contextmanager

A reimplementation of nested for Python 3 from 43cdd22, using the already imported contextmanager from contextlib.

This should silence linter warnings about the implementation method, but also be Python 3.4+ compatible and more future proof for changes in later Python versions.

Fix test_tasks for Python 3

six.iteritems should be used here to ensure identical behaviour between Python 2 and 3.

A reimplementation of nested for Python 3 from 43cdd22, using the
already imported contextmanager from contextlib.

This should silence linter warnings about the implementation method, but
also be Python 3.4+ compatible and more future proof for changes in
later Python versions.
six.iteritems should be used here to ensure identical behaviour between
Python 2 and 3.
@Stealthii Stealthii changed the base branch from master to req_py3 April 13, 2022 15:47
@Stealthii Stealthii changed the base branch from req_py3 to master April 13, 2022 15:47
@Stealthii
Copy link
Author

Closing this in favour of #73, which makes these changes to the req_py3 branch.

@Stealthii Stealthii closed this Apr 13, 2022
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.

1 participant