From 525d7941ff0fc50f074382dbba1c8a2218e37cfc Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Mon, 17 Feb 2014 22:07:19 +0100 Subject: [PATCH] =?UTF-8?q?[attributs]=20Pitit=20probl=C3=A8me=20de=20pare?= =?UTF-8?q?nthesage=20logique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 26d2ad8..60424c0 100644 --- a/attributs.py +++ b/attributs.py @@ -126,7 +126,7 @@ def attrify(val, attr, conn, Parent=None): return val else: attr_classe = AttributeFactory.get(attr, fallback=Attr) - if not isinstance(val, unicode) and (attr_classe.python_type and not isinstance(val, attr_classe.python_type)): + if not isinstance(val, unicode) and not (attr_classe.python_type and isinstance(val, attr_classe.python_type)): cranslib.deprecated.usage("attrify ne devrait ĂȘtre appelĂ© qu'avec des unicode (%r)" % val, level=3) val = val.decode('utf-8') return attr_classe(val, conn, Parent)