changeset 127:349ca811c017

py3
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 14:58:28 -0800
parents d00f89a9f3c5
children 7cccddcd8b9d
files bitsyblog/parser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/parser.py	Tue Nov 03 14:57:22 2020 -0800
+++ b/bitsyblog/parser.py	Tue Nov 03 14:58:28 2020 -0800
@@ -300,7 +300,7 @@
                                                       second=0, microsecond=0)
         res = self._parse(timestr, **kwargs)
         if res is None:
-            raise ValueError, "unknown string format"
+            raise ValueError("unknown string format")
         repl = {}
         for attr in ["year", "month", "day", "hour",
                      "minute", "second", "microsecond"]: