Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3..../site-pac.../yaml
File: nodes.py
[0] Fix | Delete
class Node(object):
[1] Fix | Delete
def __init__(self, tag, value, start_mark, end_mark):
[2] Fix | Delete
self.tag = tag
[3] Fix | Delete
self.value = value
[4] Fix | Delete
self.start_mark = start_mark
[5] Fix | Delete
self.end_mark = end_mark
[6] Fix | Delete
def __repr__(self):
[7] Fix | Delete
value = self.value
[8] Fix | Delete
#if isinstance(value, list):
[9] Fix | Delete
# if len(value) == 0:
[10] Fix | Delete
# value = '<empty>'
[11] Fix | Delete
# elif len(value) == 1:
[12] Fix | Delete
# value = '<1 item>'
[13] Fix | Delete
# else:
[14] Fix | Delete
# value = '<%d items>' % len(value)
[15] Fix | Delete
#else:
[16] Fix | Delete
# if len(value) > 75:
[17] Fix | Delete
# value = repr(value[:70]+u' ... ')
[18] Fix | Delete
# else:
[19] Fix | Delete
# value = repr(value)
[20] Fix | Delete
value = repr(value)
[21] Fix | Delete
return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.tag, value)
[22] Fix | Delete
[23] Fix | Delete
class ScalarNode(Node):
[24] Fix | Delete
id = 'scalar'
[25] Fix | Delete
def __init__(self, tag, value,
[26] Fix | Delete
start_mark=None, end_mark=None, style=None):
[27] Fix | Delete
self.tag = tag
[28] Fix | Delete
self.value = value
[29] Fix | Delete
self.start_mark = start_mark
[30] Fix | Delete
self.end_mark = end_mark
[31] Fix | Delete
self.style = style
[32] Fix | Delete
[33] Fix | Delete
class CollectionNode(Node):
[34] Fix | Delete
def __init__(self, tag, value,
[35] Fix | Delete
start_mark=None, end_mark=None, flow_style=None):
[36] Fix | Delete
self.tag = tag
[37] Fix | Delete
self.value = value
[38] Fix | Delete
self.start_mark = start_mark
[39] Fix | Delete
self.end_mark = end_mark
[40] Fix | Delete
self.flow_style = flow_style
[41] Fix | Delete
[42] Fix | Delete
class SequenceNode(CollectionNode):
[43] Fix | Delete
id = 'sequence'
[44] Fix | Delete
[45] Fix | Delete
class MappingNode(CollectionNode):
[46] Fix | Delete
id = 'mapping'
[47] Fix | Delete
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function