###--------------------------------------------------------------------------
### Utilities.
+def bin(x): return x
+def text(x): return x
def excval(): return exc_info()[1]
QUIS = OS.path.basename(argv[0])
fi.st = None
fi.err = excval()
return None
- hash = B.hexlify(hash)
+ hash = text(B.hexlify(hash))
## Insert a record into the database.
if me._db:
suffix = ''
seq = 0
while True:
- vino = '%08x' % (Z.crc32(fi.name + suffix) & 0xffffffff)
+ vino = '%08x' % (Z.crc32(bin(fi.name + suffix)) & 0xffffffff)
if vino not in me._vinomap: break
suffix = '\0%d' % seq
seq += 1