summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtarfile.tex
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-12-19 22:06:46 (GMT)
committerGeorg Brandl <georg@python.org>2006-12-19 22:06:46 (GMT)
commitebbeed781d923494f782f0750e76ad4aac8e29f5 (patch)
treedafb83ba387ff94a63cbd9b0493bcfd398f5bf1a /Doc/lib/libtarfile.tex
parent8183c635bc9906b2344c0b369955d478dce15088 (diff)
downloadcpython-ebbeed781d923494f782f0750e76ad4aac8e29f5.zip
cpython-ebbeed781d923494f782f0750e76ad4aac8e29f5.tar.gz
cpython-ebbeed781d923494f782f0750e76ad4aac8e29f5.tar.bz2
Patch #1484695: The tarfile module now raises a HeaderError exception
if a buffer given to frombuf() is invalid.
Diffstat (limited to 'Doc/lib/libtarfile.tex')
-rw-r--r--Doc/lib/libtarfile.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libtarfile.tex b/Doc/lib/libtarfile.tex
index ca6e65a..5f277da 100644
--- a/Doc/lib/libtarfile.tex
+++ b/Doc/lib/libtarfile.tex
@@ -124,6 +124,11 @@ Some facts and figures:
only if \member{TarFile.errorlevel}\code{ == 2}.
\end{excdesc}
+\begin{excdesc}{HeaderError}
+ Is raised by \method{frombuf()} if the buffer it gets is invalid.
+ \versionadded{2.6}
+\end{excdesc}
+
\begin{seealso}
\seemodule{zipfile}{Documentation of the \refmodule{zipfile}
standard module.}
@@ -332,6 +337,8 @@ the file's data itself.
\begin{methoddesc}{frombuf}{}
Create and return a \class{TarInfo} object from a string buffer.
+ \versionadded[Raises \exception{HeaderError} if the buffer is
+ invalid.]{2.6}
\end{methoddesc}
\begin{methoddesc}{tobuf}{posix}