Initial port to python3
[htsworkflow.git] / htsworkflow / util / hdquery.py
index 57c05e6025bf847e31e32875f44b34ea49c6adc6..a4c6b71ba3ff7d2ab853efa85f0a260685f50649 100644 (file)
@@ -23,8 +23,8 @@ try:
         #  the 2nd of which is the serial number
         return data.strip('\x00').split()[1]
     
-except ImportError, e:
-    print >>sys.stderr, "hdquery requires py_sg"
+except ImportError as e:
+    print("hdquery requires py_sg", file=sys.stderr)
 
     def get_hd_serial_num(device):
         raise NotImplemented('get_hd_serial_num is not available for anything other than linux')