summaryrefslogtreecommitdiff
path: root/Lib/gzip.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r--Lib/gzip.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py
index 5b20e5ba69..8edcda4493 100644
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -213,14 +213,6 @@ class GzipFile(_compression.BaseStream):
self._write_gzip_header(compresslevel)
@property
- def filename(self):
- import warnings
- warnings.warn("use the name attribute", DeprecationWarning, 2)
- if self.mode == WRITE and self.name[-3:] != ".gz":
- return self.name + ".gz"
- return self.name
-
- @property
def mtime(self):
"""Last modification time read from stream, or None"""
return self._buffer.raw._last_mtime