Mercurial > ~darius > hgwebdir.cgi > pyinst
diff datafile.py @ 56:91b476ebc0f2
Run through 2to3
author | Daniel O'Connor <doconnor@gsoft.com.au> |
---|---|
date | Tue, 08 Dec 2020 14:00:45 +1030 |
parents | 3d2306e39700 |
children |
line wrap: on
line diff
--- a/datafile.py Tue Dec 08 13:59:05 2020 +1030 +++ b/datafile.py Tue Dec 08 14:00:45 2020 +1030 @@ -17,10 +17,10 @@ try: self.opts[key] = int(value) - except exceptions.ValueError, e: + except exceptions.ValueError as e: try: self.opts[key] = float(value) - except exceptions.ValueError, e: + except exceptions.ValueError as e: self.opts[key] = value def __getitem__(self, k):