diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-01-01 17:09:37 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-01-01 17:09:37 +0100 |
| commit | f9be48d89ea73d5d401b6b5b6a271848f259a1c3 (patch) | |
| tree | e6293cbb13d259095ee561d42797e4b0ad0807c2 /psycopg/microprotocols.c | |
| parent | 506ce93a5b2de01116c0023cc0da681e825fb3e7 (diff) | |
| parent | fdfa2de1a1744cabf918d8e4bf2a8740cbba101e (diff) | |
| download | psycopg2-f9be48d89ea73d5d401b6b5b6a271848f259a1c3.tar.gz | |
Merge branch 'none-in-composite' into python2
Diffstat (limited to 'psycopg/microprotocols.c')
| -rw-r--r-- | psycopg/microprotocols.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/psycopg/microprotocols.c b/psycopg/microprotocols.c index 12ec7fb..a00f20d 100644 --- a/psycopg/microprotocols.c +++ b/psycopg/microprotocols.c @@ -135,11 +135,6 @@ microprotocols_adapt(PyObject *obj, PyObject *proto, PyObject *alt) /* we don't check for exact type conformance as specified in PEP 246 because the ISQLQuote type is abstract and there is no way to get a quotable object to be its instance */ - - /* None is always adapted to NULL */ - - if (obj == Py_None) - return PyString_FromString("NULL"); Dprintf("microprotocols_adapt: trying to adapt %s", obj->ob_type->tp_name); |
