Commit 81333776 authored by cermak's avatar cermak
Browse files

py 3.7 compat

Change-Id: I631222b9196f967cf1528ac23a63b268ff7a74b9
parent aeb128f0
......@@ -113,7 +113,8 @@ class XRaySource(base.DiscreteOutput):
# Parse hello string
resp = iter(self._iodev.Communicate('HELLO')[9:][:-1].split())
for k in resp:
if v := next(resp, None):
v = next(resp, None)
if v:
if lastkey and k == "S/N":
k = f"{lastkey} SN"
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment