[Checkins] SVN: z3c.pt/trunk/z3c/pt/expressions.py This should be a syntax error.

Malthe Borch mborch at gmail.com
Tue Mar 18 21:45:03 EDT 2008


Log message for revision 84771:
  This should be a syntax error.

Changed:
  U   z3c.pt/trunk/z3c/pt/expressions.py

-=-
Modified: z3c.pt/trunk/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/z3c/pt/expressions.py	2008-03-19 01:44:45 UTC (rev 84770)
+++ z3c.pt/trunk/z3c/pt/expressions.py	2008-03-19 01:45:02 UTC (rev 84771)
@@ -502,7 +502,7 @@
 
     def validate(self, string):
         if not self.path_regex.match(string):
-            raise ValueError("Not a valid path-expression.")
+            raise SyntaxError("Not a valid path-expression.")
 
     def translate(self, string):
         """



More information about the Checkins mailing list