tremc: add fix for python3.9

This commit is contained in:
Paper
2020-10-24 21:19:31 -03:00
committed by Érico Nogueira Rolim
parent 99496addf3
commit f0554808e9
2 changed files with 13 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
# upstream: yes
--- tremc
+++ tremc
@@ -438,7 +438,7 @@ class Transmission(object):
# TAG_TORRENT_DETAILS, but just passing seems to help.(?)
try:
torrent_details = response['arguments']['torrents'][0]
- torrent_details['pieces'] = base64.decodestring(bytes(torrent_details['pieces'], ENCODING))
+ torrent_details['pieces'] = base64.decodebytes(bytes(torrent_details['pieces'], ENCODING))
self.torrent_details_cache = torrent_details
self.upgrade_peerlist()
except IndexError:
+1 -2
View File
@@ -1,8 +1,7 @@
# Template file for 'tremc'
pkgname=tremc
version=0.9.2
revision=1
archs=noarch
revision=2
build_style=gnu-makefile
depends="python3"
short_desc="Console client for the BitTorrent client Transmission"