scripts/qmp-shell: use triple-double-quote docstring style
(2014 me had never written python before.) Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210607200649.1840382-11-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
31226369ab
commit
c6be2bf86e
@ -94,9 +94,12 @@ class QMPShellError(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class FuzzyJSON(ast.NodeTransformer):
|
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
|
values in an AST and replaces them by proper "True/False/None" values that
|
||||||
Python can properly evaluate.'''
|
Python can properly evaluate.
|
||||||
|
"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def visit_Name(cls, node):
|
def visit_Name(cls, node):
|
||||||
if node.id == 'true':
|
if node.id == 'true':
|
||||||
|
Loading…
Reference in New Issue
Block a user