Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiro Hrončok <miro@hroncok.cz>2018-02-11 23:44:15 +0300
committerMiro Hrončok <miro@hroncok.cz>2018-02-13 11:13:21 +0300
commitfcb3027c33411408a364b35a9c1435038ef392f7 (patch)
treeef039590f39f161f7dc4e2e5dbe8581e260f1aa1 /printcore.py
parent98f66bd84b727c94f74bd1dfe940c06d713fbd8d (diff)
Python 3: Fix except syntax
Change generated by: python-modernize -wnf lib2to3.fixes.fix_except
Diffstat (limited to 'printcore.py')
-rwxr-xr-xprintcore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/printcore.py b/printcore.py
index 8a5998f..07640f2 100755
--- a/printcore.py
+++ b/printcore.py
@@ -45,7 +45,7 @@ if __name__ == '__main__':
try:
opts, args = getopt.getopt(sys.argv[1:], "b:svVh",
["baud=", "statusreport", "verbose", "version", "help"])
- except getopt.GetoptError, err:
+ except getopt.GetoptError as err:
print str(err)
print usage
sys.exit(2)