We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47a5dc commit 15fe876Copy full SHA for 15fe876
src/xopen/__init__.py
@@ -667,11 +667,9 @@ def _file_or_path_to_binary_stream(
667
if isinstance(file_or_path, io.IOBase) and not hasattr(file_or_path, "encoding"):
668
# Text files have encoding attributes. This file is binary:
669
return file_or_path, False
670
- else:
671
- raise TypeError(
672
- f"Unsupported type for {file_or_path}, "
673
- f"{file_or_path.__class__.__name__}."
674
- )
+ raise TypeError(
+ f"Unsupported type for {file_or_path}, " f"{file_or_path.__class__.__name__}."
+ )
675
676
677
def _filepath_from_path_or_filelike(fileorpath: FileOrPath) -> str:
0 commit comments