mirror of
https://github.com/niess/python-appimage.git
synced 2025-09-06 09:40:10 +02: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)
|