summaryrefslogtreecommitdiff
path: root/psycopg/python.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-23 04:08:32 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-31 03:18:26 +0100
commit03dde732f6f14581d7f19ecda260087d4e6e6aaa (patch)
treedd78be1b5ebe3c5a0ddb733c1312036106b2fae0 /psycopg/python.h
parent87a7ebac10fb0055a0d685aa0ba50a09abf8fc86 (diff)
downloadpsycopg2-03dde732f6f14581d7f19ecda260087d4e6e6aaa.tar.gz
Datetime adaptation in bytes.
Diffstat (limited to 'psycopg/python.h')
-rw-r--r--psycopg/python.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/psycopg/python.h b/psycopg/python.h
index 40895bb..452c734 100644
--- a/psycopg/python.h
+++ b/psycopg/python.h
@@ -81,18 +81,12 @@
#define Text_Format(f,a) PyString_Format(f,a)
#define Text_FromUTF8(s) PyString_FromString(s)
#define Text_FromUTF8AndSize(s,n) PyString_FromStringAndSize(s,n)
-/* f must contain exactly a %s placeholder */
-#define Text_FromFormatS(f,s) PyString_FromFormat(f, PyString_AsString(s))
-#define Text_S "%s"
#else
#define Text_Type PyUnicode_Type
#define Text_Check(s) PyUnicode_Check(s)
#define Text_Format(f,a) PyUnicode_Format(f,a)
#define Text_FromUTF8(s) PyUnicode_FromString(s)
#define Text_FromUTF8AndSize(s,n) PyUnicode_FromStringAndSize(s,n)
-/* f must contain exactly a %U placeholder */
-#define Text_FromFormatS(f,s) PyUnicode_FromFormat(f, s)
-#define Text_S "%U"
#endif
#if PY_MAJOR_VERSION > 2