version 1.1.5

This commit is contained in:
NIIBE Yutaka
2015-06-03 16:34:27 +09:00
parent 3926f42647
commit 2471616f74
9 changed files with 50 additions and 175 deletions

View File

@@ -615,9 +615,9 @@ def get_gnuk_device():
for (dev, config, intf) in gnuk_devices():
try:
icc = gnuk_token(dev, config, intf)
print("Device: ", dev.filename)
print("Configuration: ", config.value)
print("Interface: ", intf.interfaceNumber)
print("Device: %s" % dev.filename)
print("Configuration: %d" % config.value)
print("Interface: %d" % intf.interfaceNumber)
break
except:
pass

View File

@@ -74,7 +74,7 @@ def main(keyno, passwd, data_regnual, data_upgrade):
for dev in gnuk_devices_by_vidpid():
try:
reg = regnual(dev)
print("Device: ", dev.filename)
print("Device: %s" % dev.filename)
break
except:
pass