[Python-checkins] r76481 - peps/trunk/pep-0386.txt
tarek.ziade
python-checkins at python.org
Tue Nov 24 10:57:15 CET 2009
Author: tarek.ziade
Date: Tue Nov 24 10:57:14 2009
New Revision: 76481
Log:
quoting versions in the exception
Modified:
peps/trunk/pep-0386.txt
Modified: peps/trunk/pep-0386.txt
==============================================================================
--- peps/trunk/pep-0386.txt (original)
+++ peps/trunk/pep-0386.txt Tue Nov 24 10:57:14 2009
@@ -364,7 +364,7 @@
>>> 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 @@
>>> 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 @@
>>> 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
=======
More information about the Python-checkins
mailing list