Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tails
mat2
Commits
19977788
Commit
19977788
authored
6 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Fix stuff?
parent
372791b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mat2
+4
-1
4 additions, 1 deletion
mat2
with
4 additions
and
1 deletion
mat2
+
4
−
1
View file @
19977788
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment