mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 20:30:13 +01:00
11 lines
161 B
Python
11 lines
161 B
Python
__all__ = ['decode']
|
|
|
|
|
|
def decode(s):
|
|
'''Decode Python 3 bytes as str
|
|
'''
|
|
try:
|
|
return s.decode()
|
|
except Exception:
|
|
return str(s)
|