修改udstools.py语法

This commit is contained in:
liuheng
2024-03-16 16:08:51 +08:00
parent 1cd1da9a5f
commit b586575e20

View File

@ -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):