diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-11-17 20:39:39 +0200 |
---|---|---|
committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-11-17 22:22:11 +0200 |
commit | 6c48b63ae4a70da6dbbc5b6eef20806d7f505950 (patch) | |
tree | 6976b00090753bf0f64a5b4f3745e71f96f0d2c0 /psycopg/adapter_pfloat.c | |
parent | b05a5819317ab19fc7749e34fb67f4604d9bd10a (diff) | |
download | psycopg2-6c48b63ae4a70da6dbbc5b6eef20806d7f505950.tar.gz |
Drop support for EOL Python 2.7
Diffstat (limited to 'psycopg/adapter_pfloat.c')
-rw-r--r-- | psycopg/adapter_pfloat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/psycopg/adapter_pfloat.c b/psycopg/adapter_pfloat.c index 2243633..e72e7f1 100644 --- a/psycopg/adapter_pfloat.c +++ b/psycopg/adapter_pfloat.c @@ -54,8 +54,7 @@ pfloat_getquoted(pfloatObject *self, PyObject *args) goto exit; } -#if PY_3 - /* unicode to bytes in Py3 */ + /* unicode to bytes */ { PyObject *tmp = PyUnicode_AsUTF8String(rv); Py_DECREF(rv); @@ -63,7 +62,6 @@ pfloat_getquoted(pfloatObject *self, PyObject *args) goto exit; } } -#endif if ('-' == Bytes_AS_STRING(rv)[0]) { /* Prepend a space in front of negative numbers (ticket #57) */ |