Path: remove some more deprecated Py2 code
This commit is contained in:
@@ -33,17 +33,10 @@
|
||||
|
||||
using namespace Path;
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
# define PYSTRING_FROMSTRING(str) PyUnicode_FromString(str)
|
||||
# define PYINT_TYPE PyLong_Type
|
||||
# define PYINT_FROMLONG(l) PyLong_FromLong(l)
|
||||
# define PYINT_ASLONG(o) PyLong_AsLong(o)
|
||||
#else
|
||||
# define PYSTRING_FROMSTRING(str) PyString_FromString(str)
|
||||
# define PYINT_TYPE PyInt_Type
|
||||
# define PYINT_FROMLONG(l) PyInt_FromLong(l)
|
||||
# define PYINT_ASLONG(o) PyInt_AsLong(o)
|
||||
#endif
|
||||
#define PYSTRING_FROMSTRING(str) PyUnicode_FromString(str)
|
||||
#define PYINT_TYPE PyLong_Type
|
||||
#define PYINT_FROMLONG(l) PyLong_FromLong(l)
|
||||
#define PYINT_ASLONG(o) PyLong_AsLong(o)
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string TooltablePy::representation(void) const
|
||||
|
||||
Reference in New Issue
Block a user