diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-08-24 01:25:02 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-08-24 01:25:02 +0100 |
| commit | 68a4308c3dec3fe58ab07fb32ce2bff84a86845e (patch) | |
| tree | 6a7780d991e2c3a98d62d368bd5a866212d62b89 /psycopg/adapter_pboolean.c | |
| parent | 6e841a41e680f8c1570e97086cf923f923851e98 (diff) | |
| download | psycopg2-68a4308c3dec3fe58ab07fb32ce2bff84a86845e.tar.gz | |
Dropped PSYCOPG_NEW_BOOLEAN flag
Introduced in 2.0 beta 8, 2006 A.D. Went absolutely untouched in 8 years
of refactoring, when Python 2.5 and PostgreSQL 8.1 roamed the earth.
I would say it has stood the test of the time.
Diffstat (limited to 'psycopg/adapter_pboolean.c')
| -rw-r--r-- | psycopg/adapter_pboolean.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/psycopg/adapter_pboolean.c b/psycopg/adapter_pboolean.c index 8a5950d..c7e3b80 100644 --- a/psycopg/adapter_pboolean.c +++ b/psycopg/adapter_pboolean.c @@ -37,21 +37,12 @@ static PyObject * pboolean_getquoted(pbooleanObject *self, PyObject *args) { -#ifdef PSYCOPG_NEW_BOOLEAN if (PyObject_IsTrue(self->wrapped)) { return Bytes_FromString("true"); } else { return Bytes_FromString("false"); } -#else - if (PyObject_IsTrue(self->wrapped)) { - return Bytes_FromString("'t'"); - } - else { - return Bytes_FromString("'f'"); - } -#endif } static PyObject * |
