]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-arch.c
gdb/python: remove Python 2 support
[thirdparty/binutils-gdb.git] / gdb / python / py-arch.c
index e6dfb241617c05077a138da37cc544a1d9fb83fc..cc217df8a5e9a0c6502d98e7baa6270a48fd8143 100644 (file)
@@ -148,12 +148,6 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw)
         conversion process.  */
       if (PyLong_Check (end_obj))
        end = PyLong_AsUnsignedLongLong (end_obj);
-#if PY_MAJOR_VERSION == 2
-      else if (PyInt_Check (end_obj))
-       /* If the end_pc value is specified without a trailing 'L', end_obj will
-          be an integer and not a long integer.  */
-       end = PyInt_AsLong (end_obj);
-#endif
       else
        {
          PyErr_SetString (PyExc_TypeError,