From 01e54bbb829a9441627c416342b1f1e50f94333e Mon Sep 17 00:00:00 2001 From: Ajay Patel Date: Wed, 21 Nov 2018 18:22:24 -0800 Subject: [PATCH] Fix hasattr --- supersqlite/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supersqlite/__init__.py b/supersqlite/__init__.py index 846696a..7122d66 100644 --- a/supersqlite/__init__.py +++ b/supersqlite/__init__.py @@ -192,7 +192,7 @@ def _set_row_factory(self, value): value = getattr(apsw, prop) if prop.startswith('__') or isinstance(value, types.ModuleType): continue - if not hasattr(SuperSQLite): + if not hasattr(SuperSQLite, prop): setattr(SuperSQLite, prop, value) setattr(SuperSQLite, 'connect', SuperSQLiteConnection)