quoting versions in the exception
This commit is contained in:
parent
68046d7cd1
commit
e8c709844d
|
@ -364,7 +364,7 @@ standard scheme::
|
|||
>>> def validate_version(version):
|
||||
... rversion = suggest_rational_version(version)
|
||||
... if rversion is None:
|
||||
... raise ValueError('Cannot work with %s' % version)
|
||||
... raise ValueError('Cannot work with "%s"' % version)
|
||||
... return RationalVersion(rversion)
|
||||
...
|
||||
|
||||
|
@ -374,7 +374,7 @@ standard scheme::
|
|||
>>> validate_version('foo')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: Cannot work with foo
|
||||
ValueError: Cannot work with "foo"
|
||||
|
||||
>>> validate_version('1.24.33')
|
||||
RationalVersion('1.24.33')
|
||||
|
@ -385,7 +385,7 @@ standard scheme::
|
|||
>>> validate_version('2008.12.11')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: Cannot work with 2008.12.11
|
||||
ValueError: Cannot work with "2008.12.11"
|
||||
|
||||
Roadmap
|
||||
=======
|
||||
|
|
Loading…
Reference in New Issue