Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Jan 16, 2018
1 parent a60dc3d commit ae3a8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xphyle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def xopen(
if not mode:
mode = FileMode(access='r', coding='t' if is_str else 'b')
is_buffer = True
elif (is_str == (file_type is FileType.FILELIKE) or
elif ((is_str or is_buffer) == (file_type is FileType.FILELIKE) or
is_std != (file_type is FileType.STDIO) or
is_buffer != (file_type is FileType.BUFFER)):
raise ValueError("file_type = {} does not match path {}".format(
Expand Down

0 comments on commit ae3a8e6

Please sign in to comment.