diff options
author | Tom Tromey <tom@tromey.com> | 2022-06-05 10:09:42 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-06-05 10:11:37 -0600 |
commit | ca9aae53bd5bf4d24f4c9ea6f4dc1606eb9cfc3c (patch) | |
tree | c9a63362b80a25e7f085b953f4e35893f01f8a40 /gdb/python | |
parent | c8eab1d7c92ad72089c98e5753ebc96419e3674a (diff) | |
download | gdb-ca9aae53bd5bf4d24f4c9ea6f4dc1606eb9cfc3c.zip gdb-ca9aae53bd5bf4d24f4c9ea6f4dc1606eb9cfc3c.tar.gz gdb-ca9aae53bd5bf4d24f4c9ea6f4dc1606eb9cfc3c.tar.bz2 |
Remove obsolete Python 2 comment
I found a comment that referred to Python 2, but that is now obsolete
-- the code it refers to is gone. I'm checking in this patch to
remove the comment.
There's a similar comment elsewhere, but I plan to remove that one in
another patch I'm going to submit shortly.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-value.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index e779f49..0f70033 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -1840,13 +1840,6 @@ convert_value_from_python (PyObject *obj) if (cmp >= 0) value = value_from_longest (builtin_type_pybool, cmp); } - /* Make a long logic check first. In Python 3.x, internally, - all integers are represented as longs. In Python 2.x, there - is still a differentiation internally between a PyInt and a - PyLong. Explicitly do this long check conversion first. In - GDB, for Python 3.x, we #ifdef PyInt = PyLong. This check has - to be done first to ensure we do not lose information in the - conversion process. */ else if (PyLong_Check (obj)) { LONGEST l = PyLong_AsLongLong (obj); |