修改udstools.py语法
This commit is contained in:
@ -978533,8 +978533,8 @@ diff -crN '--exclude=.git' '--exclude=.gitee' '--exclude=.vscode' pljava_org/uds
|
||||
+
|
||||
+ try:
|
||||
+
|
||||
+ with open(tmpDir+'/../../../etc/region_map') as file_regionmap
|
||||
+ region_map = file_regionmap.read()
|
||||
+ with open(tmpDir+'/../../../etc/region_map') as file_regionmap:
|
||||
+ region_map = file_regionmap.read()
|
||||
+ file_regionmap.close()
|
||||
+ domains = re.findall('"'+region+'": "(.+?)"', region_map)
|
||||
+ if (domains != None and len(domains) > 0):
|
||||
|
||||
Reference in New Issue
Block a user