Commit 19977788 authored by jvoisin's avatar jvoisin

Fix stuff?

parent 372791b3
Pipeline #20657 passed with stages
in 4 minutes and 17 seconds
......@@ -88,7 +88,10 @@ def __print_meta(filename: str, metadata: dict, depth: int=1):
# Remove control characters
# We might use 'Cc' instead of 'C', but better safe than sorry
# https://www.unicode.org/reports/tr44/#GC_Values_Table
v = ''.join(ch for ch in v if not unicodedata.category(ch).startswith('C'))
try:
v = ''.join(ch for ch in v if not unicodedata.category(ch).startswith('C'))
except TypeError:
pass # for things that aren't iterable
try: # FIXME this is ugly.
print(padding + " %s: %s" % (k, v))
......
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