mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 20:30:13 +01:00
Add an app builder
This commit is contained in:
10
python_appimage/utils/compat.py
Normal file
10
python_appimage/utils/compat.py
Normal file
@@ -0,0 +1,10 @@
|
||||
__all__ = ['decode']
|
||||
|
||||
|
||||
def decode(s):
|
||||
'''Decode Python 3 bytes as str
|
||||
'''
|
||||
try:
|
||||
return s.decode()
|
||||
except AttributeError:
|
||||
return str(s)
|
||||
Reference in New Issue
Block a user