kmisc 2.1.108__tar.gz → 2.1.110__tar.gz
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-2.1.108 → kmisc-2.1.110}/PKG-INFO +1 -1
- {kmisc-2.1.108 → kmisc-2.1.110}/kmisc/__init__.py +8 -2
- {kmisc-2.1.108 → kmisc-2.1.110}/kmisc.egg-info/PKG-INFO +1 -1
- {kmisc-2.1.108 → kmisc-2.1.110}/LICENSE +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/README.md +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/kmisc.egg-info/SOURCES.txt +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/kmisc.egg-info/dependency_links.txt +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/kmisc.egg-info/top_level.txt +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/pyproject.toml +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/setup.cfg +0 -0
- {kmisc-2.1.108 → kmisc-2.1.110}/setup.py +0 -0
@@ -38,12 +38,14 @@ from multiprocessing import Process, Queue
|
|
38
38
|
from email.mime.multipart import MIMEMultipart
|
39
39
|
try:
|
40
40
|
from kmport import *
|
41
|
+
import kmport
|
41
42
|
except:
|
42
43
|
pip_user_install='--user' if os.environ.get('VIRTUAL_ENV') is None else ''
|
43
44
|
os.system('''for i in 1 2 3 4 5; do python3 -m pip install pip --upgrade {} 2>&1 | grep "however version" |grep "is available" >& /dev/null || break; done'''.format(pip_user_install))
|
44
45
|
os.system('python3 -m pip install kmport {}'.format(pip_user_install))
|
45
46
|
try:
|
46
47
|
from kmport import *
|
48
|
+
import kmport
|
47
49
|
except:
|
48
50
|
print('Can not install kmport')
|
49
51
|
os._exit(1)
|
@@ -52,9 +54,11 @@ Import('import whois',install_name='python-whois')
|
|
52
54
|
#Import('import whois') # it print some comment on screen
|
53
55
|
|
54
56
|
global krc_define
|
57
|
+
global krc_ext
|
55
58
|
global printf_log_base
|
56
59
|
global printf_caller_tree
|
57
60
|
global printf_caller_detail
|
61
|
+
|
58
62
|
log_intro=3
|
59
63
|
pipe_file=None
|
60
64
|
log_new_line='\n'
|
@@ -2030,7 +2034,6 @@ def findXML(xmlfile,find_name=None,find_path=None,default=None,out='xmlobj',get_
|
|
2030
2034
|
elif IsIn(out,['attrib','att','attr']):
|
2031
2035
|
return found_path[0].attrib
|
2032
2036
|
elif IsIn(out,['path','key','keys']):
|
2033
|
-
print('>>',found_root[1],':',found_path[1])
|
2034
2037
|
if found_root[1] is None:
|
2035
2038
|
return found_path[1]
|
2036
2039
|
return os.path.join(found_root[1],found_path[1])
|
@@ -2528,7 +2531,10 @@ def net_send_data(sock,data,key='kg',enc=False,timeout=0,instant=False,log=None,
|
|
2528
2531
|
|
2529
2532
|
def net_receive_data(sock,key='kg',progress=None,retry=0,retry_timeout=30,progress_msg=None,log=None,err_scr=True):
|
2530
2533
|
# decode code here
|
2531
|
-
|
2534
|
+
try:
|
2535
|
+
ok,size,data_type,enc=packet_head(sock,retry=retry,timeout=retry_timeout)
|
2536
|
+
except:
|
2537
|
+
return [False,None]
|
2532
2538
|
if krc(ok,chk=True):
|
2533
2539
|
# File not found Error log size is 57. So if 57 then ignore progress
|
2534
2540
|
if size == 57: progress=False
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|