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

Don't use deprecated U file open mode #1013

Merged
merged 1 commit into from Oct 23, 2018

Conversation

phw
Copy link
Member

@phw phw commented Oct 22, 2018

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Fixes the deprecation warning:

picard/test/test_bytes2human.py:84: DeprecationWarning: 'U' mode is deprecated
  with open(path, 'rU') as f:

The U mode was to unify different line endings, but since we control the read file here this is not really needed anyway.

Solution

Action

@phw phw force-pushed the test_bytes2human-fix-deprecation-warning branch from 62f6dc4 to bfab544 Compare October 23, 2018 06:50
@phw phw merged commit ab576a5 into metabrainz:master Oct 23, 2018
@phw phw deleted the test_bytes2human-fix-deprecation-warning branch October 23, 2018 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants