Skip to content
Snippets Groups Projects
Commit c6be2bf8 authored by John Snow's avatar John Snow
Browse files

scripts/qmp-shell: use triple-double-quote docstring style


(2014 me had never written python before.)

Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Message-id: 20210607200649.1840382-11-jsnow@redhat.com
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
parent 31226369
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,12 @@ class QMPShellError(Exception):
class FuzzyJSON(ast.NodeTransformer):
'''This extension of ast.NodeTransformer filters literal "true/false/null"
"""
This extension of ast.NodeTransformer filters literal "true/false/null"
values in an AST and replaces them by proper "True/False/None" values that
Python can properly evaluate.'''
Python can properly evaluate.
"""
@classmethod
def visit_Name(cls, node):
if node.id == 'true':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment