beremiz

68e6649039a5
Merged in yegorich/beremiz/py3-fix (pull request #36)

Use Python 3 compatible syntax for exceptions
--- a/Beremiz_service.py Wed Aug 29 18:58:51 2018 +0300
+++ b/Beremiz_service.py Fri Sep 07 20:58:13 2018 +0000
@@ -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()