Skip to content

Conversation

@trexfeathers
Copy link
Contributor

@trexfeathers trexfeathers commented Oct 31, 2019

Don’t miss fc_rules_cf – non-Python file
Final files to change:
• requirements/setup.txt
• lib/scitools_iris.egg-info//requires.txt

@trexfeathers
Copy link
Contributor Author

Wasn't thinking clearly for d6363c4. Obviously need to provide alternative imports for these.

@trexfeathers trexfeathers changed the base branch from master to py2_strip November 4, 2019 11:15
@trexfeathers trexfeathers marked this pull request as ready for review November 4, 2019 11:15
@trexfeathers
Copy link
Contributor Author

Rebased on top of the work from #3505.
All Travis tests passed but this wasn't communicated back to the PR so am re-running them.

@trexfeathers
Copy link
Contributor Author

Now need to resolve some more conflicts caused by #3507

from six.moves import (filter, input, map, range, zip) # noqa

# Import iris tests first so that some things can be initialised
# import iris tests first so that some things can be initialised
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has been changed in a couple places. The capitalisation and formatting seems to be fairly inconsistent throughout iris and it remains that way. I suppose this is mostly harmless (though perhaps it may do something odd with black when that gets merged).

@stephenworsley stephenworsley self-assigned this Nov 5, 2019
Copy link
Contributor

@stephenworsley stephenworsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a couple minor things that might be worth tweaking.

if kind == 'U':
value_type_name = 'unicode'
if kind == 'S':
value_type_name = 'bytes'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block can probably be parsed more easily as:

if kind == 'S':
    value_type_name = 'bytes'
else:
    value_type_name = 'string'

with self.assertRaisesRegex(TypeError,
# exactly == Py2, positional == Py3
'takes (exactly )?1 (positional )?'
'argument '):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this string now be 'takes 1 positional argument '?

@stephenworsley stephenworsley mentioned this pull request Nov 5, 2019
@stephenworsley
Copy link
Contributor

This has been replaced by #3509.

@trexfeathers trexfeathers deleted the remove_six branch July 31, 2020 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants