Skip to content
Snippets Groups Projects
Commit 19977788 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Fix stuff?

parent 372791b3
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment