kmisc 2.1.99__py3-none-any.whl → 2.1.102__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kmisc/__init__.py +6 -9
- {kmisc-2.1.99.dist-info → kmisc-2.1.102.dist-info}/METADATA +1 -1
- kmisc-2.1.102.dist-info/RECORD +6 -0
- kmisc-2.1.99.dist-info/RECORD +0 -6
- {kmisc-2.1.99.dist-info → kmisc-2.1.102.dist-info}/LICENSE +0 -0
- {kmisc-2.1.99.dist-info → kmisc-2.1.102.dist-info}/WHEEL +0 -0
- {kmisc-2.1.99.dist-info → kmisc-2.1.102.dist-info}/top_level.txt +0 -0
kmisc/__init__.py
CHANGED
@@ -1859,14 +1859,8 @@ def cut_string(string,max_len=None,sub_len=None,new_line='\n',front_space=False,
|
|
1859
1859
|
def FirstKey(src,default=None):
|
1860
1860
|
return Next(src,default=default)
|
1861
1861
|
|
1862
|
-
def code_error(
|
1863
|
-
|
1864
|
-
if log_msg != default:
|
1865
|
-
if log: log('\n!!ERROR!!: {}'.format(log_msg),log_level=1)
|
1866
|
-
if email_func and email and email_title:
|
1867
|
-
a=email_func(email,email_title,log_msg,dj_ip=email_server)
|
1868
|
-
TIME().Sleep(5)
|
1869
|
-
return default
|
1862
|
+
def code_error(log_msg=None):
|
1863
|
+
return ExceptMessage(msg=log_msg)
|
1870
1864
|
|
1871
1865
|
def DirName(src,default=None):
|
1872
1866
|
dirname=Path(src,default=default)
|
@@ -2892,7 +2886,10 @@ def get_iso_uid(filename):
|
|
2892
2886
|
if type(filename) is not str:
|
2893
2887
|
return False,None,None
|
2894
2888
|
if os.path.exists(filename):
|
2895
|
-
|
2889
|
+
if find_executable('sudo'):
|
2890
|
+
uid_cmd='''sudo /usr/sbin/blkid {}'''.format(filename)
|
2891
|
+
else:
|
2892
|
+
uid_cmd='''/usr/sbin/blkid {}'''.format(filename)
|
2896
2893
|
rc=rshell(uid_cmd)
|
2897
2894
|
if rc[0] == 0:
|
2898
2895
|
uid_str='{0}_{1}'.format(FIND(rc[1]).Find('UUID="(\w.*)" L'),FIND(rc[1]).Find('LABEL="(\w.*)" T')).replace(' ','_')
|
@@ -0,0 +1,6 @@
|
|
1
|
+
kmisc/__init__.py,sha256=gpYi_z41Sl5sCjQCMkLfDFeDXpbhIK5L9g8h4_5IrL0,133022
|
2
|
+
kmisc-2.1.102.dist-info/LICENSE,sha256=mn9ekhb34HJxsrVhcxrLXJUzy55T62zg-Gh9Ro0mVJI,1066
|
3
|
+
kmisc-2.1.102.dist-info/METADATA,sha256=SPMp-mWR3Yet1Lxuxb9SeLbGk9y_Br7piWDLPcHTVJw,5503
|
4
|
+
kmisc-2.1.102.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
5
|
+
kmisc-2.1.102.dist-info/top_level.txt,sha256=wvdHf5aQTqcGYvxk-F9E_BMWLMhlwC8INBmwO-V6_X4,6
|
6
|
+
kmisc-2.1.102.dist-info/RECORD,,
|
kmisc-2.1.99.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
kmisc/__init__.py,sha256=RQrN-ILWI5hYbvcJbz82e8F4J_qYivogUIq7an9Db9o,133266
|
2
|
-
kmisc-2.1.99.dist-info/LICENSE,sha256=mn9ekhb34HJxsrVhcxrLXJUzy55T62zg-Gh9Ro0mVJI,1066
|
3
|
-
kmisc-2.1.99.dist-info/METADATA,sha256=6l-OSb4nx8zrw9juE_ncCGVZ5PAobxkUK6lUlZ9OxXI,5502
|
4
|
-
kmisc-2.1.99.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
5
|
-
kmisc-2.1.99.dist-info/top_level.txt,sha256=wvdHf5aQTqcGYvxk-F9E_BMWLMhlwC8INBmwO-V6_X4,6
|
6
|
-
kmisc-2.1.99.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|