[elbe-devel] [PATCH 1/9] elbepack: filesystem: drop unused open_gz()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 29 10:46:28 CEST 2024
It is only dead code.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/filesystem.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/elbepack/filesystem.py b/elbepack/filesystem.py
index b159d7c23a1f..d13755e0921c 100644
--- a/elbepack/filesystem.py
+++ b/elbepack/filesystem.py
@@ -84,20 +84,6 @@ class Filesystem:
"""
return open(self.fname(path), mode)
- def open_gz(self, path, mode='r'):
- """
- >>> this.open_gz("open_gz") # doctest: +ELLIPSIS
- Traceback (most recent call last):
- ...
- FileNotFoundError: [Errno 2] ...
-
- >>> this.open_gz("open_gz", mode="w") # doctest: +ELLIPSIS
- <gzip _io.BufferedWriter ...>
-
- >>> _.close()
- """
- return gzip.open(self.fname(path), mode)
-
def isdir(self, path):
"""
>>> this.isdir("isdir")
--
2.45.2
More information about the elbe-devel
mailing list