From 07a045d1259f30878abba416b86373c05c929965 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 29 May 2014 19:33:43 +0000 Subject: Python style police: instantiate exceptions before raising them (convert two-expression form of "raise" to one-expression form). svn path=/trunk/; revision=5844 --- rpki/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpki/config.py') diff --git a/rpki/config.py b/rpki/config.py index 1b2c3c34..d5f58238 100644 --- a/rpki/config.py +++ b/rpki/config.py @@ -170,7 +170,7 @@ class parser(object): if isinstance(v, str): v = v.lower() if v not in self.cfg._boolean_states: - raise ValueError, "Not a boolean: %s" % v + raise ValueError("Not a boolean: %s" % v) v = self.cfg._boolean_states[v] return v -- cgit v1.2.3