From 605118acd18e5e4f78ae4eb87347a393ccfc6d6a Mon Sep 17 00:00:00 2001 From: "Ryan P. Kelly" Date: Fri, 15 Jul 2016 14:48:07 -0400 Subject: [PATCH] add a __str__ method to NoneAdapter --- lib/extensions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/extensions.py b/lib/extensions.py index 21300985..a12e0a64 100644 --- a/lib/extensions.py +++ b/lib/extensions.py @@ -154,6 +154,9 @@ class NoneAdapter(object): def getquoted(self, _null=b("NULL")): return _null + def __str__(self): + return str(self.getquoted()) + def make_dsn(dsn=None, **kwargs): """Convert a set of keywords into a connection strings."""