--ammend
This commit is contained in:
parent
0b4df768ba
commit
c5fc3e1e65
2 changed files with 2 additions and 2 deletions
|
@ -433,11 +433,12 @@ def log_archive_method_finished(result: "ArchiveResult"):
|
||||||
hints = getattr(result.output, 'hints', None) or ()
|
hints = getattr(result.output, 'hints', None) or ()
|
||||||
if hints:
|
if hints:
|
||||||
if isinstance(hints, (list, tuple, type(_ for _ in ()))):
|
if isinstance(hints, (list, tuple, type(_ for _ in ()))):
|
||||||
hints = (hint.decode() for hint in hints if isinstance(hint, bytes))
|
hints = [hint.decode() for hint in hints if isinstance(hint, bytes)]
|
||||||
else:
|
else:
|
||||||
if isinstance(hints, bytes):
|
if isinstance(hints, bytes):
|
||||||
hints = hints.decode()
|
hints = hints.decode()
|
||||||
hints = hints.split('\n')
|
hints = hints.split('\n')
|
||||||
|
|
||||||
hints = (
|
hints = (
|
||||||
' {}{}{}'.format(ANSI['lightyellow'], line.strip(), ANSI['reset'])
|
' {}{}{}'.format(ANSI['lightyellow'], line.strip(), ANSI['reset'])
|
||||||
for line in hints[:5] if line.strip()
|
for line in hints[:5] if line.strip()
|
||||||
|
|
|
@ -8,7 +8,6 @@ For examples of supported import formats see tests/.
|
||||||
__package__ = 'archivebox.parsers'
|
__package__ = 'archivebox.parsers'
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
from typing import IO, Tuple, List, Optional
|
from typing import IO, Tuple, List, Optional
|
||||||
|
|
Loading…
Add table
Reference in a new issue