개정판 8d5a086c
issue #000: *
Change-Id: Ib746768511d0b3bcabccbdc000d2bd3820f2e2f3
DTI_PID/DTI_PID/NominalPipeSize.py | ||
---|---|---|
128 | 128 |
except Exception as ex: |
129 | 129 |
from App import App |
130 | 130 |
from AppDocData import MessageType |
131 |
|
|
131 |
|
|
132 | 132 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
133 | 133 |
sys.exc_info()[-1].tb_lineno) |
134 | 134 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
... | ... | |
144 | 144 |
if value.startswith(self.inchStr): |
145 | 145 |
return self.inchStr, self.inchStr |
146 | 146 |
else: |
147 |
match = re.search(self.inchStr, value, re.DOTALL) |
|
147 |
# code |
|
148 |
if self.inchStr == '*': |
|
149 |
match = re.search('\*', value, re.DOTALL) |
|
150 |
else: |
|
151 |
match = re.search(self.inchStr, value, re.DOTALL) |
|
148 | 152 |
if match and match.start() is 0: |
149 | 153 |
return value[:match.end()], value[:match.end()] |
150 | 154 |
|
... | ... | |
181 | 185 |
if value.startswith(self.metricStr): |
182 | 186 |
return self.metricStr, self.metricStr |
183 | 187 |
else: |
184 |
match = re.search(self.metricStr, value, re.DOTALL) |
|
188 |
# code |
|
189 |
if self.metricStr == '*': |
|
190 |
match = re.search('\*', value, re.DOTALL) |
|
191 |
else: |
|
192 |
match = re.search(self.metricStr, value, re.DOTALL) |
|
185 | 193 |
if match and match.start() is 0: |
186 | 194 |
return value[:match.end()], value[:match.end()] |
187 | 195 |
|
내보내기 Unified diff