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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-openEuler
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: used to get and deal information about openEuler os
5
5
  Home-page: https://gitee.com/devops_dev/openEuler
6
6
  Author: redrose2100
@@ -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
- current_value = pattern.sub(replacement, current_value)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-openEuler
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Summary: used to get and deal information about openEuler os
5
5
  Home-page: https://gitee.com/devops_dev/openEuler
6
6
  Author: redrose2100
@@ -10,7 +10,7 @@ except:
10
10
 
11
11
  setup(
12
12
  name="python3-openEuler",
13
- version="0.0.5",
13
+ version="0.0.7",
14
14
  description="used to get and deal information about openEuler os",
15
15
  long_description=long_desc,
16
16
  long_description_content_type="text/markdown",