Skip to content

Commit

Permalink
Correct typo and add clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Mar 11, 2024
1 parent e07fbee commit 4a5057c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xopen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ def xopen( # noqa: C901 # The function is complex, but readable.
A replacement for the "open" function that can also read and write
compressed files transparently. The supported compression formats are gzip,
bzip2, xz and zstandard. If the filename is '-', standard output (mode 'w') or
standard input (mode 'r') is returned. Filen can be a string or a file object
standard input (mode 'r') is returned. Filename can be a string or a
file object. (See https://docs.python.org/3/glossary.html#term-file-object.)
When writing, the file format is chosen based on the file name extension:
- .gz uses gzip compression
Expand Down

0 comments on commit 4a5057c

Please sign in to comment.