Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

r76481 - peps/trunk/pep-0386.txt

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Nov 24, 2009, 2:20 AM

Post #1 of 1 (59 views)
Permalink
r76481 - peps/trunk/pep-0386.txt

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
=======
_______________________________________________
Python-checkins mailing list
Python-checkins [at] python
http://mail.python.org/mailman/listinfo/python-checkins

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.