mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Fix python dead code warnings
Fixes ``` contrib/auto_gdb/log_size.py:22: unused variable 'from_tty' (100% confidence) contrib/auto_gdb/used_size.py:29: unused variable 'from_tty' (100% confidence) ```
This commit is contained in:
parent
078ae49dc7
commit
1b3bd26138
@ -19,7 +19,7 @@ class LogSizeCommand (gdb.Command):
|
|||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
super (LogSizeCommand, self).__init__ ("logsize", gdb.COMMAND_USER)
|
super (LogSizeCommand, self).__init__ ("logsize", gdb.COMMAND_USER)
|
||||||
|
|
||||||
def invoke(self, arg, from_tty):
|
def invoke(self, arg, _from_tty):
|
||||||
try:
|
try:
|
||||||
args = gdb.string_to_argv(arg)
|
args = gdb.string_to_argv(arg)
|
||||||
obj = gdb.parse_and_eval(args[0])
|
obj = gdb.parse_and_eval(args[0])
|
||||||
|
@ -26,7 +26,7 @@ class UsedSizeCommand (gdb.Command):
|
|||||||
def get_type(cls, obj_name):
|
def get_type(cls, obj_name):
|
||||||
return gdb.parse_and_eval(obj_name).type
|
return gdb.parse_and_eval(obj_name).type
|
||||||
|
|
||||||
def invoke(self, arg, from_tty):
|
def invoke(self, arg, _from_tty):
|
||||||
try:
|
try:
|
||||||
args = gdb.string_to_argv(arg)
|
args = gdb.string_to_argv(arg)
|
||||||
obj = gdb.parse_and_eval(args[1])
|
obj = gdb.parse_and_eval(args[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user