remove the raw key from the nodes dict

This commit is contained in:
Mike Kinney
2021-12-30 08:26:13 -08:00
parent 54bb846d00
commit cecc5c3b25
3 changed files with 40 additions and 3 deletions

View File

@@ -201,3 +201,12 @@ def support_info():
platform.python_implementation(), platform.python_compiler()))
print('')
print('Please add the output from the command: meshtastic --info')
def remove_keys_from_dict(keys, adict):
"""Return a dictionary without some keys in it."""
newdict = adict
for key in keys:
if key in adict:
del newdict[key]
return newdict