branch | py3-fix |
changeset 2303 | 03ea6837a0b4 |
parent 2294 | da288f63612f |
child 2305 | 56f1d8aca886 |
child 2427 | 9554952d36d7 |
--- a/Beremiz_service.py Wed Aug 29 18:58:51 2018 +0300 +++ b/Beremiz_service.py Fri Sep 07 09:24:52 2018 +0200 @@ -69,7 +69,7 @@ try: opts, argv = getopt.getopt(sys.argv[1:], "i:p:n:x:t:a:w:c:e:s:h", ["help", "version"]) -except getopt.GetoptError, err: +except getopt.GetoptError as err: # print help information and exit: print(str(err)) # will print something like "option -a not recognized" usage()