Merged revisions 72458 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72458 | philip.jenvey | 2009-05-07 19:28:39 -0700 (Thu, 07 May 2009) | 2 lines
#4351: more appropriate DeprecationWarning stacklevels
........
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 508d88e..2c22839 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -1591,7 +1591,8 @@
return self.format == USTAR_FORMAT
def _setposix(self, value):
import warnings
- warnings.warn("use the format attribute instead", DeprecationWarning)
+ warnings.warn("use the format attribute instead", DeprecationWarning,
+ 2)
if value:
self.format = USTAR_FORMAT
else: