quoting versions in the exception

This commit is contained in:
Tarek Ziadé 2009-11-24 09:57:14 +00:00
parent 68046d7cd1
commit e8c709844d
1 changed files with 3 additions and 3 deletions

View File

@ -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
=======