diff roundup/rest.py @ 5644:b4d7588c74a4

Make exception raising work on python 3.
author John Rouillard <rouilj@ieee.org>
date Sun, 10 Mar 2019 17:57:26 -0400
parents a60cbbcc9309
children d791c5ba5852
line wrap: on
line diff
--- a/roundup/rest.py	Sun Mar 10 17:35:25 2019 -0400
+++ b/roundup/rest.py	Sun Mar 10 17:57:26 2019 -0400
@@ -1439,7 +1439,7 @@
     def __init__(self, json_string):
         ''' Parse the json string into an internal dict. '''
         def raise_error_on_constant(x):
-            raise ValueError, "Unacceptable number: %s"%x
+            raise ValueError("Unacceptable number: %s"%x)
 
         self.json_dict = json.loads(json_string,
                                     parse_constant = raise_error_on_constant)

Roundup Issue Tracker: http://roundup-tracker.org/