Skip to content

Conversation

jond01
Copy link
Contributor

@jond01 jond01 commented May 25, 2020

Refactor python 2 prints and imports
Also some style

@jond01 jond01 mentioned this pull request May 25, 2020
5 tasks
@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

Merging #917 into master will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #917      +/-   ##
==========================================
- Coverage   91.81%   91.73%   -0.09%     
==========================================
  Files          97       97              
  Lines       12359    12359              
  Branches     2177     2177              
==========================================
- Hits        11348    11338      -10     
- Misses        678      684       +6     
- Partials      333      337       +4     
Impacted Files Coverage Δ
nibabel/arrayproxy.py 99.24% <ø> (ø)
nibabel/data.py 86.99% <100.00%> (ø)
nibabel/ecat.py 88.07% <100.00%> (ø)
nibabel/environment.py 75.00% <0.00%> (-20.00%) ⬇️
nibabel/casting.py 85.28% <0.00%> (-0.87%) ⬇️
nibabel/dft.py 80.36% <0.00%> (-0.62%) ⬇️
nibabel/nifti1.py 91.66% <0.00%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bc31e5...c37d52f. Read the comment docs.

import configparser
except ImportError:
import ConfigParser as configparser
import configparser
Copy link
Member

Choose a reason for hiding this comment

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

While these are valid updates, I'm disinclined to change versioneer except for functional fixes, to keep any diffs focused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, what about the changes after the imports? They are deprecated in py3.6

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough. Let's go ahead with these changes, then.

@effigies
Copy link
Member

LGTM. Thanks!

@effigies effigies merged commit 7958c0a into nipy:master May 25, 2020
@jond01 jond01 deleted the remove-py2 branch May 25, 2020 20:24
@effigies effigies added this to the 3.2.0 milestone Aug 16, 2020
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.

2 participants