From: Georg Brandl Date: Thu, 30 Aug 2007 10:09:42 +0000 (+0000) Subject: Stronger urge to convert filenames to str before using them as argument to ZipFile... X-Git-Tag: v2.6a1~1388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f11ed159f3c580c7b4d07dd1ce1d385f0efd9e09;p=python Stronger urge to convert filenames to str before using them as argument to ZipFile.write(). --- diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index ccc3114c84..7257b35139 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -223,7 +223,7 @@ ZipFile Objects .. note:: There is no official file name encoding for ZIP files. If you have unicode file - names, please convert them to byte strings in your desired encoding before + names, you must convert them to byte strings in your desired encoding before passing them to :meth:`write`. WinZip interprets all file names as encoded in CP437, also known as DOS Latin.