diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
commit | 07a045d1259f30878abba416b86373c05c929965 (patch) | |
tree | 9b8e4fe0038e4891e3b262168dce5ecfdccc36f7 /rpki/sundial.py | |
parent | e6047c9f737275d898d88737719dd09a6ee4f25c (diff) |
Python style police: instantiate exceptions before raising them
(convert two-expression form of "raise" to one-expression form).
svn path=/trunk/; revision=5844
Diffstat (limited to 'rpki/sundial.py')
-rw-r--r-- | rpki/sundial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpki/sundial.py b/rpki/sundial.py index 0825d61b..1a7b3501 100644 --- a/rpki/sundial.py +++ b/rpki/sundial.py @@ -231,7 +231,7 @@ class timedelta(pydatetime.timedelta): d["seconds"] += d.pop("years") * cls.years_to_seconds return cls(**d) else: - raise ParseFailure, "Couldn't parse timedelta %r" % (arg,) + raise ParseFailure("Couldn't parse timedelta %r" % (arg,)) def convert_to_seconds(self): """ |