Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dump_all_bcsvs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import bcsv, binascii, csv, html, importlib, json, os, os.path, sys
import bcsv, csv, html, importlib, json, os, os.path, sys

in_path = sys.argv[1]
out_dir = sys.argv[2]
Expand Down Expand Up @@ -44,7 +44,7 @@
for field in row_class.fields():
value = getattr(row, field)
if isinstance(value, bytes):
htmlValue = binascii.hexlify(value).decode('ascii')
htmlValue = value.hex()
dataValue = htmlValue
elif isinstance(value, tuple):
htmlValue = "<span title='%s'>%s</span>" % (html.escape(value[1], True), html.escape(value[0]))
Expand Down