Method
_preprocess
(self, v, separator, ignorecase)
Source from the content-addressed store, hash-verified
| 240 | return "VersionString:" + self.version |
| 241 | |
| 242 | def _preprocess(self, v, separator, ignorecase): |
| 243 | if ignorecase: |
| 244 | v = v.lower() |
| 245 | return [ |
| 246 | ( |
| 247 | int(x) |
| 248 | if x.isdigit() |
| 249 | else [ |
| 250 | int(y) if y.isdigit() else y for y in re.findall("\d+|[a-zA-Z]+", x) |
| 251 | ] |
| 252 | ) |
| 253 | for x in re.split(separator, v) |
| 254 | ] |
| 255 | |
| 256 | def compare(self, version2, separator=". |-", ignorecase=True): |
| 257 | """ |
Tested by
no test coverage detected