1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Fix: Py3: don't use str.decode()

`str.decode('utf-8')` is obsolete, and `str.decode` has been removed
since Python 3 makes everything Unicode by default. This commit avoids
receiving the following error for the TLDR adapter:
`AttributeError: 'str' object has no attribute 'decode'`
This commit is contained in:
Rohan Kumar
2020-03-19 13:22:14 -07:00
parent 9446419f7e
commit 4a2a6193f6
+1 -1
View File
@@ -90,7 +90,7 @@ class Tldr(GitRepositoryAdapter):
# though it should not happen
answer = ''
return answer.decode('utf-8')
return answer
@classmethod
def get_updates_list(cls, updated_files_list):