diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 (GMT) |
commit | a394f2dca300c17c1d70b7d6d005af457550cc8e (patch) | |
tree | c3d435abd5bddaad590e105556cafa7c6fec4ecb /Lib/gzip.py | |
parent | e7d149ecf0ef00902dbb603cafdf20af346a7090 (diff) | |
download | cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.zip cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.gz cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.bz2 |
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 019c3e2..983e0ce 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -136,7 +136,7 @@ class GzipFile: @property def filename(self): import warnings - warnings.warn("use the name attribute", DeprecationWarning) + warnings.warn("use the name attribute", DeprecationWarning, 2) if self.mode == WRITE and self.name[-3:] != ".gz": return self.name + ".gz" return self.name |