X-Git-Url: https://git.phdru.name/?p=extfs.d.git;a=blobdiff_plain;f=torrent;fp=torrent;h=bd5ff13f7db394d4b77329a278afed1f2bbd5ccb;hp=ba725c965aed4ac000d185a2ba481f19066e59b9;hb=305d8404d79009d42d8a421362beb1068bafd9bf;hpb=28e137b0e67dab9a974ff8e8959cef3e93dbb7c4 diff --git a/torrent b/torrent index ba725c9..bd5ff13 100755 --- a/torrent +++ b/torrent @@ -317,11 +317,11 @@ def decode_torrent(): encoding = encoding.decode('ascii') elif codepage: encoding = codepage.decode('ascii') - - if PY3 and encoding: + else: + encoding = 'ascii' return decode_dict(torrent, encoding) - else: - return torrent + + return torrent def decode_datetime_asc(dt):