Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoebber committed Jan 7, 2020
1 parent 3981527 commit 73c92f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metpy/io/_tools.py
Expand Up @@ -22,7 +22,7 @@ def open_as_needed(filename, mode='rb'):
if hasattr(filename, 'read'):
return filename

kwargs = {'errors': 'surrogateescape'} if mode is not 'rb' else {}
kwargs = {'errors': 'surrogateescape'} if mode != 'rb' else {}
if filename.endswith('.bz2'):
return bz2.BZ2File(filename, mode)
elif filename.endswith('.gz'):
Expand Down

0 comments on commit 73c92f6

Please sign in to comment.