python3-openEuler 0.0.5__tar.gz → 0.0.7__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.
Potentially problematic release.
This version of python3-openEuler might be problematic. Click here for more details.
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/PKG-INFO +1 -1
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/openEuler/openEuler.py +8 -1
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/PKG-INFO +1 -1
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/setup.py +1 -1
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/LICENSE +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/README.md +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/openEuler/__init__.py +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/SOURCES.txt +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/dependency_links.txt +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/requires.txt +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/top_level.txt +0 -0
- {python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/setup.cfg +0 -0
|
@@ -159,10 +159,17 @@ class OpenEuler():
|
|
|
159
159
|
prev_value = None
|
|
160
160
|
current_value = value
|
|
161
161
|
# 循环替换直到无变化(处理嵌套宏)
|
|
162
|
+
index = 0
|
|
162
163
|
while current_value != prev_value:
|
|
164
|
+
index+=1
|
|
165
|
+
if index>=10:
|
|
166
|
+
break
|
|
163
167
|
prev_value = current_value
|
|
164
168
|
for pattern, replacement in patterns:
|
|
165
|
-
|
|
169
|
+
try:
|
|
170
|
+
current_value = pattern.sub(replacement, current_value)
|
|
171
|
+
except Exception as e:
|
|
172
|
+
continue
|
|
166
173
|
return current_value
|
|
167
174
|
|
|
168
175
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python3_openeuler-0.0.5 → python3_openeuler-0.0.7}/python3_openEuler.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|