From 16f0c033c24dd07310c572d5cb47cd9b272131c3 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 18 Dec 2015 17:31:12 +0100 Subject: [PATCH] Bugfix: Pass encoding for urlparse hack --- vdirsyncer/utils/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/utils/compat.py b/vdirsyncer/utils/compat.py index 1e499e0..f4c5d4d 100644 --- a/vdirsyncer/utils/compat.py +++ b/vdirsyncer/utils/compat.py @@ -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