Skip to content

Commit 0f154e2

Browse files
committed
Fix twine( check) with the newly released pkginfo 1.9.
It (the pkginfo release) removes `distribution.must_decode`, though that function was questionably public as it was an "exposed" compatibility function (removed as part of pkginfo dropping 2.7 support). See https://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/205
1 parent 717ae3d commit 0f154e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twine/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ def read_file(name: str) -> bytes:
8686
def parse(self, data: bytes) -> None:
8787
super().parse(data)
8888

89-
fp = io.StringIO(distribution.must_decode(data))
89+
fp = io.StringIO(data.decode("utf-8", errors="replace"))
9090
msg = distribution.parse(fp)
9191
self.description = msg.get_payload()

0 commit comments

Comments
 (0)