Skip to content

Commit

Permalink
Fix twine( check) with the newly released pkginfo 1.9.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Julian committed Nov 29, 2022
1 parent 717ae3d commit 0f154e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twine/wheel.py
Expand Up @@ -86,6 +86,6 @@ def read_file(name: str) -> bytes:
def parse(self, data: bytes) -> None:
super().parse(data)

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

0 comments on commit 0f154e2

Please sign in to comment.