diff options
| author | orivej <[email protected]> | 2022-02-10 16:44:49 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:44:49 +0300 |
| commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
| tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/cython/Cython/Debugger/libpython.py | |
| parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Debugger/libpython.py')
| -rw-r--r-- | contrib/tools/cython/Cython/Debugger/libpython.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/tools/cython/Cython/Debugger/libpython.py b/contrib/tools/cython/Cython/Debugger/libpython.py index fea626dd730..213a60de5ae 100644 --- a/contrib/tools/cython/Cython/Debugger/libpython.py +++ b/contrib/tools/cython/Cython/Debugger/libpython.py @@ -46,10 +46,10 @@ the type names are known to the debugger The module also extends gdb with some python-specific commands. ''' - + # NOTE: some gdbs are linked with Python 3, so this file should be dual-syntax # compatible (2.6+ and 3.0+). See #19308. - + from __future__ import print_function import gdb import os @@ -2486,17 +2486,17 @@ class PyCont(ExecutionControlCommandBase): def _pointervalue(gdbval): """ - Return the value of the pointer as a Python int. + Return the value of the pointer as a Python int. gdbval.type must be a pointer type """ # don't convert with int() as it will raise a RuntimeError if gdbval.address is not None: - return int(gdbval.address) + return int(gdbval.address) else: # the address attribute is None sometimes, in which case we can # still convert the pointer to an int - return int(gdbval) + return int(gdbval) def pointervalue(gdbval): @@ -2688,7 +2688,7 @@ class FixGdbCommand(gdb.Command): warnings.filterwarnings('ignore', r'.*', RuntimeWarning, re.escape(__name__)) try: - int(gdb.parse_and_eval("(void *) 0")) == 0 + int(gdb.parse_and_eval("(void *) 0")) == 0 except RuntimeError: pass # warnings.resetwarnings() @@ -2726,7 +2726,7 @@ class PyExec(gdb.Command): lines = [] while True: try: - line = input('>') + line = input('>') except EOFError: break else: |
