You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate-lib/files/calculate-lib-2.1.11-fix_in...

28 lines
1017 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

diff --git pym/cl_base.py pym/cl_base.pypym/cl_base.py
index 15a8d34..860e33a 100644
--- pym/cl_base.py
+++ pym/cl_base.pypym/cl_base.py
@@ -379,6 +379,7 @@ class iniParser(cl_profile._error):
return False
self.checkIni = "samba"
# В файле есть данные
+ textIni = re.sub(r"^#.*$",textIni,'',re.M)
if not self.isEmptyFile(textIni):
try:
objIni = cl_profile.plasma(textIni)
diff --git pym/cl_utils.py pym/cl_base.pypym/cl_utils.py
index 8f25ffd..ac25984 100644
--- pym/cl_utils.py
+++ pym/cl_base.pypym/cl_utils.py
@@ -526,9 +526,7 @@ def getInterfaces():
Get available interfaces (discard which hasn't device)
"""
try:
- return filter(lambda x:os.path.exists(
- os.path.join(SYSFS_NET_PATH,x,"device")),
- os.listdir(SYSFS_NET_PATH))
+ return filter(lambda x: x!= "lo",os.listdir(SYSFS_NET_PATH))
except:
return []