X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Futil%2Fhdquery.py;fp=htsworkflow%2Futil%2Fhdquery.py;h=a4c6b71ba3ff7d2ab853efa85f0a260685f50649;hp=57c05e6025bf847e31e32875f44b34ea49c6adc6;hb=53ebb47e86e81ce349d4ef4e16aef94be93486ea;hpb=4262586d10cc0cc227390873b301b55244204c11 diff --git a/htsworkflow/util/hdquery.py b/htsworkflow/util/hdquery.py index 57c05e6..a4c6b71 100644 --- a/htsworkflow/util/hdquery.py +++ b/htsworkflow/util/hdquery.py @@ -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')