Message128883
You don’t need a new function (and certainly not in the __init__ submodule, the right place would be the version module), just do something like this:
try:
NormalizedVersion(text)
except IrrationalVersionError:
# version is invalid
Alternative: use suggest_normalized_version, which returns a string or None, then display according text to prompt the user to accept the suggested version or type another. |
|
Date |
User |
Action |
Args |
2011-02-19 21:50:44 | eric.araujo | set | recipients:
+ eric.araujo, tarek, swamiyeswanth, gotcha |
2011-02-19 21:50:43 | eric.araujo | set | messageid: <1298152243.96.0.329258564119.issue11060@psf.upfronthosting.co.za> |
2011-02-19 21:50:43 | eric.araujo | link | issue11060 messages |
2011-02-19 21:50:43 | eric.araujo | create | |
|