rouault / dump_gdbtable

Python script to dump the content of a .gdbtable
138 stars 24 forks source link

encode('hex') not supported in python 3.6.9 #7

Closed jimmyknowles closed 3 years ago

jimmyknowles commented 4 years ago

Thanks for this code. I was using it to troubleshoot an fgdb and modified line 740 to get it to work in python 3

Replaced print('Field %s : "%s"' % (fields[ifield].name, ''.join(x.encode('hex') for x in val))) with print('Field %s : "%s"' % (fields[ifield].name, ''.join(bytes.hex(val))))

https://github.com/rouault/dump_gdbtable/blob/ad881a4bc17f6e0c57538f8c16bed66a6254db26/dump_gdbtable.py#L740

jimmyknowles commented 4 years ago

Just realized this is very similar to https://github.com/rouault/dump_gdbtable/issues/5#issue-152221172