Compile with Python 2

This commit is contained in:
rdb 2013-02-18 12:59:44 +00:00
parent 0f8361d730
commit 234619864b

View File

@ -243,7 +243,12 @@ inline bool Buffered_DatagramConnection::SendMessage(const Datagram &msg)
nativenet_cat.warning() << "Buffered_DatagramConnection::SendMessage->Error On Write--Out Buffer = " << _Writer.AmountBuffered() << "\n";
#ifdef HAVE_PYTHON
ostringstream s;
#if PY_MAJOR_VERSION >= 3
PyObject *exc_type = PyExc_ConnectionError;
#else
PyObject *exc_type = PyExc_StandardError;
#endif
s << endl << "Error sending message: " << endl;
msg.dump_hex(s);