From 0d4db2ec557ca734f15a4f46a7be004e6c0ca954 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Mon, 28 Feb 2005 16:03:22 +0000 Subject: [PATCH] Case (2) in usercast.py --- examples/usercast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/usercast.py b/examples/usercast.py index 854e2770..fb30237b 100644 --- a/examples/usercast.py +++ b/examples/usercast.py @@ -65,7 +65,8 @@ class Rect(object): def __conform__(self, proto): """This is a terrible hack, just ignore proto and return self.""" - return self + if proto == psycopg.extensions.ISQLQuote: + return self def from_points(self, x0, y0, x1, y1): """Init the rectangle from points."""