From: Anderson Bravalheri Date: Fri, 1 Feb 2019 10:56:55 +0000 (+0000) Subject: Fix wrong usage of `isinstance` X-Git-Tag: v6.0.0~46 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0ea9b0f0cbd4c5567289c4c80c73de94901d7047;p=osm%2FRO.git Fix wrong usage of `isinstance` Second parameter should be a class, not string Change-Id: I6401429d7cc314502a364b7fc81e73d30175b193 Signed-off-by: Anderson Bravalheri --- diff --git a/osm_ro/db_base.py b/osm_ro/db_base.py index e7a4fb32..a4cdef3b 100644 --- a/osm_ro/db_base.py +++ b/osm_ro/db_base.py @@ -170,7 +170,7 @@ class db_base(): return self.con.escape(value) def escape_string(self, value): - if isinstance(value, "unicode"): + if isinstance(value, unicode): value = value.encode("utf8") return self.con.escape_string(value)