1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-12-02 07:50:04 +03: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
No known key found for this signature in database
GPG Key ID: 36B154A782AEA0AC

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):