Make six use consistant.
Review Request #9649 — Created Feb. 16, 2018 and submitted
Make six use consistant.
Import the function directly if it is a six.moves function otherwise
leave it specified as a six function that needs to be replaced in
the future.
All tests passed in python 2.7
Description | From | Last Updated |
---|---|---|
We don't want to only import six. That makes updating code down the road much harder, increases the chances of … |
chipx86 | |
Please undo this change. The previous way was better. |
david | |
Please undo these changes. |
david | |
F821 undefined name 'six' |
reviewbot | |
This is changing StringIO from using the C implementation to using the Python implementation (on Python 2). Please change this … |
david |
- Description:
-
~ Only import the six package to make finding and removing calls easier in the future
~ Only import the six package to make finding and removing calls easier in the future.
+ + https://reviews.reviewboard.org/r/9648/
+ https://reviews.reviewboard.org/r/9649/ + https://reviews.reviewboard.org/r/9650/ + https://reviews.reviewboard.org/r/9651/ + https://reviews.reviewboard.org/r/9652/ + https://reviews.reviewboard.org/r/9653/ + https://reviews.reviewboard.org/r/9654/ + https://reviews.reviewboard.org/r/9655/ - Depends On:
-
-
-
We don't want to only import
six
. That makes updating code down the road much harder, increases the chances of errors (we can't check for unimported references anymore), and just generally makes things more verbose. I don't really understand the reason for this change, but it's not the direction we want to take the codebase.This change is also trying to do too much. Some parts are changing how
six
imports work, others are moving things likeunicode()
and.iteritems()
tosix
equivalents. That should be its own change.
- Summary:
-
Only import the six package to make finding and removing calls easier in the futureMake six use consistant.
- Description:
-
~ Only import the six package to make finding and removing calls easier in the future.
~ Make six use consistant.
~ https://reviews.reviewboard.org/r/9648/
~ https://reviews.reviewboard.org/r/9649/ ~ https://reviews.reviewboard.org/r/9650/ ~ Import the function directly if it is a six.moves function otherwise
~ leave it specified as a six function that needs to be replaced in ~ the future. - https://reviews.reviewboard.org/r/9651/ - https://reviews.reviewboard.org/r/9652/ - https://reviews.reviewboard.org/r/9653/ - https://reviews.reviewboard.org/r/9654/ - https://reviews.reviewboard.org/r/9655/ - Testing Done:
-
~ Not sure what to put here since these intermediate commits don't pass tests or flake8.
~ All tests passed in python 2.7
- Depends On:
-
- Commit:
71bf96b669af60a9c39cd4dbb80fb39662ff5279cff3904fb199a79c80cb6b39c1b90642d6e83bc8- Diff:
Revision 2 (+8 -6)
Checks run (2 succeeded)
flake8 passed.JSHint passed.
- Commit:
-
d9c583274b6654f9ed42f19928957858f76da44a8677358b870c47d2067b43939e546e8d3c786a73
Checks run (2 succeeded)
- Commit:
-
8677358b870c47d2067b43939e546e8d3c786a73f509c0fc3f9a38440e79dc2fde0cf7d38eb68b53