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