From 6aef001272d4e22d87f92b88cb5c313da93c7e6e Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 26 Apr 2021 11:13:22 +0200 Subject: [PATCH] Part: remove some more deprecated Py2 code --- src/Mod/Part/App/AppPartPy.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Mod/Part/App/AppPartPy.cpp b/src/Mod/Part/App/AppPartPy.cpp index a0d8f59feb..08e3e9fd47 100644 --- a/src/Mod/Part/App/AppPartPy.cpp +++ b/src/Mod/Part/App/AppPartPy.cpp @@ -1913,14 +1913,9 @@ private: } } -#if PY_MAJOR_VERSION >= 3 //FIXME: Test this! if (PyBytes_Check(intext)) { PyObject *p = Base::PyAsUnicodeObject(PyBytes_AsString(intext)); -#else - if (PyString_Check(intext)) { - PyObject *p = Base::PyAsUnicodeObject(PyString_AsString(intext)); -#endif if (!p) { throw Py::TypeError("** makeWireString can't convert PyString."); }