summaryrefslogtreecommitdiff
path: root/usr/src/cmd/pyzfs/pyzfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/pyzfs/pyzfs.py')
-rw-r--r--usr/src/cmd/pyzfs/pyzfs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/pyzfs/pyzfs.py b/usr/src/cmd/pyzfs/pyzfs.py
index 03f29062d0..7df7d09bfe 100644
--- a/usr/src/cmd/pyzfs/pyzfs.py
+++ b/usr/src/cmd/pyzfs/pyzfs.py
@@ -20,6 +20,7 @@
# CDDL HEADER END
#
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
#
# Note, we want SIGINT (control-c) to exit the process quietly, to mimic
@@ -65,11 +66,11 @@ try:
try:
subfunc()
- except zfs.util.ZFSError, e:
+ except zfs.util.ZFSError as e:
print(e)
sys.exit(1)
-except IOError, e:
+except IOError as e:
import errno
import sys