File: fix-exception-using-py2-format.patch

package info (click to toggle)
python-pykmip 0.10.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,780 kB
  • sloc: python: 102,455; makefile: 33; sh: 12
file content (16 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix exception using py2 format
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2020-04-24

--- python-pykmip-0.10.0.orig/kmip/demos/pie/locate.py
+++ python-pykmip-0.10.0/kmip/demos/pie/locate.py
@@ -63,7 +63,7 @@ if __name__ == '__main__':
     for initial_date in initial_dates:
         try:
             t = time.strptime(initial_date)
-        except ValueError, TypeError:
+        except ValueError as TypeError:
             logger.error(
                 "Invalid initial date provided: {}".format(initial_date)
             )