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

FIX: Unicode filenames could not be loaded in py27 #98

Merged
merged 1 commit into from Feb 13, 2017
Merged

FIX: Unicode filenames could not be loaded in py27 #98

merged 1 commit into from Feb 13, 2017

Conversation

pseudocubic
Copy link
Contributor

Resolves #97

Filenames with unicode characters could not be loaded with load_data, due to incomplete isinstance() check upload load. Now checks if not isinstance(files, (tuple, list)) and converts to tuple if True.

Added unittest to confirm.

Resolves #97

Filenames with unicode characters could not be loaded with load_data, due to incomplete isinstance() check upload load. Now checks `if not isinstance(files, (tuple, list))` and converts to tuple if True.

Added unittest to confirm.
@codecov-io
Copy link

Codecov Report

Merging #98 into master will decrease coverage by -0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage    84.1%   84.07%   -0.03%     
==========================================
  Files          47       47              
  Lines        3881     3881              
==========================================
- Hits         3264     3263       -1     
- Misses        617      618       +1
Impacted Files Coverage Δ
neutronpy/fileio/data.py 87.03% <100%> (-0.93%)

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 f0d8fb2...0208f78. Read the comment docs.

@pseudocubic pseudocubic merged commit 01ec23d into neutronpy:master Feb 13, 2017
@pseudocubic pseudocubic deleted the bug/unicode-filename-data-load branch February 13, 2017 20:07
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.

None yet

2 participants