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=refs%2Fchanges%2F63%2F7163%2F1;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)