Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hash_backup
Commits
dd805eba
Commit
dd805eba
authored
Jun 10, 2019
by
Anders Blomdell
Browse files
Remove som log cruft. Allow non UTF8 in log messages
parent
eee880a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
hashtoc.py
View file @
dd805eba
...
...
@@ -35,7 +35,6 @@ class HashTOC:
tmp
=
[
s
.
strip
().
decode
(
'utf8'
)
for
s
in
l
.
split
(
b
':'
)
]
if
tmp
[
0
].
startswith
(
'#fields'
):
fields
=
[
rename
.
get
(
f
)
or
f
for
f
in
tmp
[
1
:]
]
print
(
fields
,
file
=
sys
.
stderr
)
tocEntry
=
collections
.
namedtuple
(
'TOCEntry'
,
fields
)
N
=
len
(
tmp
)
-
1
pass
...
...
loghandler.py
View file @
dd805eba
...
...
@@ -71,7 +71,7 @@ class LOG:
if
encoding
==
None
:
return
b
else
:
return
b
.
decode
(
encoding
)
return
b
.
decode
(
encoding
,
errors
=
'surrogateescape'
)
self
.
decode
=
decode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment