From: Xie Yanbo Date: Wed, 11 Sep 2024 11:44:46 +0000 (+0800) Subject: Fix invisible character typo (#123933) X-Git-Tag: v3.14.0a1~524 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9eedf19c99475b1940bbbbdc8816b51da3968e7;p=thirdparty%2FPython%2Fcpython.git Fix invisible character typo (#123933) Remove accidental addition of zero-width character (U+FEFF) reported by @jaraco: - https://github.com/python/cpython/commit/c3f4a6b52418d9b9f091f864cb6340d0d5fc6966#commitcomment-146456562 --- diff --git a/Lib/zipfile/_path/__init__.py b/Lib/zipfile/_path/__init__.py index 5079db906480..c0e53e273cfa 100644 --- a/Lib/zipfile/_path/__init__.py +++ b/Lib/zipfile/_path/__init__.py @@ -280,7 +280,7 @@ class Path: >>> str(path.parent) 'mem' - If the zipfile has no filename, such attributes are not + If the zipfile has no filename, such attributes are not valid and accessing them will raise an Exception. >>> zf.filename = None