HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyc
�
 ��Wc@s�ddlZddlZddlZddlZeje�ZejddkZerde	fZ
n	efZ
defd��YZ
d�Zd�Zd�ZdS(	i����NiitEasyProcessUnicodeErrorcBseZRS((t__name__t
__module__(((sH/opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyRscCs�t|t�sn�ts�t|t�r�y"tjd|�jdd�}Wn%tk
rptd|d��nXt	j
d�q�ntj|�}|S(s�
     - cmd is string list -> nothing to do
     - cmd is string -> split it using shlex

    :param cmd: string ('ls -l') or list of strings (['ls','-l'])
    :rtype: string list
    tNFKDtasciitstricts*unicode command "%s" can not be processed.s!Use string list instead of stringsunicode is normalized(
t
isinstancetstring_typestPY3tunicodetunicodedatat	normalizetencodetUnicodeEncodeErrorRtlogtdebugtshlextsplit(tcmd((sH/opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyt
split_commands

cCs.tr	n!t|t�r*|jd�}n|S(Nsutf-8(RRR	R(ts((sH/opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyt	uniencode0s
cCs=tr|j�}n$t|t�r9|jdd�}n|S(Nsutf-8tignore(RtdecodeRtstr(R((sH/opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyt	unidecode:s
(tloggingRtsysR
t	getLoggerRRtversion_infoRRRt
basestringt	ExceptionRRRR(((sH/opt/alt/python27/lib/python2.7/site-packages/easyprocess/unicodeutil.pyt<module>s