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:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user