mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Compile with Python 2
This commit is contained in:
parent
0f8361d730
commit
234619864b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user