From 0ea9b0f0cbd4c5567289c4c80c73de94901d7047 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 1 Feb 2019 10:56:55 +0000 Subject: [PATCH] Fix wrong usage of `isinstance` Second parameter should be a class, not string Change-Id: I6401429d7cc314502a364b7fc81e73d30175b193 Signed-off-by: Anderson Bravalheri --- osm_ro/db_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1