You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
Python
18 lines
342 B
Python
9 years ago
|
import platform
|
||
|
|
||
|
try:
|
||
|
import unidecode
|
||
|
UNIDECODE_IMPORTED = True
|
||
|
except ImportError:
|
||
|
UNIDECODE_IMPORTED = False
|
||
|
|
||
|
|
||
|
def running_on_windows():
|
||
|
if platform.system() == 'Windows':
|
||
|
return 'Does not work on Windows.'
|
||
|
|
||
|
|
||
|
def no_unidecode_available():
|
||
|
if not UNIDECODE_IMPORTED:
|
||
|
return 'unidecode is not available.'
|