From 4a5057c8b7f6106a9ac2ffa2cdfbb3aa344986d2 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Mon, 11 Mar 2024 14:51:29 +0100 Subject: [PATCH] Correct typo and add clarification --- src/xopen/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py index c5c68a5..8f9c2d5 100644 --- a/src/xopen/__init__.py +++ b/src/xopen/__init__.py @@ -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