mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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)
|
@functools.wraps(f)
|
||||||
def wrapper(x, *a, **kw):
|
def wrapper(x, *a, **kw):
|
||||||
to_orig = to_unicode if isinstance(x, text_type) else to_bytes
|
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
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue