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:
parent
9446419f7e
commit
4a2a6193f6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user