mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 04:44:42 +00:00
squash! Python3: fix strformat ascii_safe() and unicode_safe()
From: fixes for Python 3: fix running problems in Python 3
This commit is contained in:
parent
a1c6c4935e
commit
e11ba8e427
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def unicode_safe (s, encoding=i18n.default_encoding, errors='replace'):
|
|||
if isinstance(s, str_text):
|
||||
# s is already unicode, nothing to do
|
||||
return s
|
||||
return str_text(bytes(s), encoding, errors)
|
||||
return str_text(str(s), encoding, errors)
|
||||
|
||||
|
||||
def ascii_safe (s):
|
||||
|
|
|
|||
Loading…
Reference in a new issue