mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Bugfix: Pass encoding for urlparse hack
This commit is contained in:
parent
8104a91769
commit
16f0c033c2
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def _wrap_native(f, encoding='utf-8'):
|
|||
@functools.wraps(f)
|
||||
def wrapper(x, *a, **kw):
|
||||
to_orig = to_unicode if isinstance(x, text_type) else to_bytes
|
||||
return to_orig(f(to_native(x, encoding), *a, **kw))
|
||||
return to_orig(f(to_native(x, encoding), *a, **kw), encoding)
|
||||
return wrapper
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue