mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Import structmember/stringobject headers from python.h.
stringobject is not to be imported with Python 3.
This commit is contained in:
parent
9b30147341
commit
4635c2aa4f
|
@ -29,8 +29,6 @@
|
|||
#include "psycopg/adapter_asis.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include "psycopg/microprotocols_proto.h"
|
||||
#include "psycopg/connection.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "psycopg/adapter_datetime.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <datetime.h>
|
||||
|
||||
#include <time.h>
|
||||
|
|
|
@ -30,9 +30,6 @@
|
|||
#include "psycopg/microprotocols.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
|
||||
|
||||
/* list_str, list_getquoted - return result of quoting */
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include "psycopg/adapter_mxdatetime.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <mxDateTime.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "psycopg/adapter_pboolean.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "psycopg/adapter_pdecimal.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <floatobject.h>
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "psycopg/adapter_pfloat.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <floatobject.h>
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include "psycopg/adapter_qstring.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -33,9 +33,6 @@
|
|||
#include "psycopg/green.h"
|
||||
#include "psycopg/xid.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "psycopg/microprotocols.h"
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include "psycopg/microprotocols_proto.h"
|
||||
#include "psycopg/pqpath.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include "psycopg/cursor.h"
|
||||
#include "psycopg/connection.h"
|
||||
|
||||
#include <structmember.h>
|
||||
|
||||
|
||||
/** the adapters registry **/
|
||||
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
|
||||
#include "psycopg/microprotocols_proto.h"
|
||||
|
||||
#include <structmember.h>
|
||||
#include <stringobject.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "psycopg/notify.h"
|
||||
|
||||
#include <structmember.h>
|
||||
|
||||
|
||||
static const char notify_doc[] =
|
||||
"A notification received from the backend.\n\n"
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
#define PSYCOPG_PYTHON_H 1
|
||||
|
||||
#include <structmember.h>
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
#include <stringobject.h>
|
||||
#endif
|
||||
|
||||
#if PY_VERSION_HEX < 0x02040000
|
||||
# error "psycopg requires Python >= 2.4"
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
#define PSYCOPG_MODULE
|
||||
#include "psycopg/psycopg.h"
|
||||
|
||||
#include <structmember.h>
|
||||
|
||||
#include "psycopg/typecast.h"
|
||||
#include "psycopg/cursor.h"
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
|
||||
#include "psycopg/xid.h"
|
||||
|
||||
#include <structmember.h>
|
||||
|
||||
|
||||
static const char xid_doc[] =
|
||||
"A transaction identifier used for two-phase commit.\n\n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user