From e1b3c7b9409bc9553e75f22c4e407c15d45ac22e Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 13 Feb 2010 02:14:38 +0000 Subject: [PATCH] Fixed Inet constructor. --- ChangeLog | 2 ++ lib/extras.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a4b31b98..b6ec4c1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * Stop the loop variable used to create __all__ leaking in the module. + * Fixed Inet constructor. + 2010-02-10 Federico Di Gregorio * lib/extensions.py: Binary was not imported from _psycopg; now it is diff --git a/lib/extras.py b/lib/extras.py index 227389bb..cefa802d 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -399,7 +399,7 @@ class Inet(object): by passing an evil value to the initializer. """ def __init__(self, addr): - self.addr + self.addr = addr def prepare(self, conn): self._conn = conn