X7ROOT File Manager
Current Path:
/opt/alt/python37/lib64/python3.7/site-packages/yaml
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
yaml
/
ðŸ“
..
📄
__init__.py
(12.86 KB)
ðŸ“
__pycache__
📄
_yaml.cpython-37m-x86_64-linux-gnu.so
(239.77 KB)
📄
composer.py
(4.77 KB)
📄
constructor.py
(27.97 KB)
📄
cyaml.py
(3.76 KB)
📄
dumper.py
(2.77 KB)
📄
emitter.py
(42 KB)
📄
error.py
(2.47 KB)
📄
events.py
(2.39 KB)
📄
loader.py
(2.01 KB)
📄
nodes.py
(1.41 KB)
📄
parser.py
(24.9 KB)
📄
reader.py
(6.63 KB)
📄
representer.py
(13.85 KB)
📄
resolver.py
(8.79 KB)
📄
scanner.py
(50.08 KB)
📄
serializer.py
(4.07 KB)
📄
tokens.py
(2.51 KB)
Editing: nodes.py
class Node(object): def __init__(self, tag, value, start_mark, end_mark): self.tag = tag self.value = value self.start_mark = start_mark self.end_mark = end_mark def __repr__(self): value = self.value #if isinstance(value, list): # if len(value) == 0: # value = '<empty>' # elif len(value) == 1: # value = '<1 item>' # else: # value = '<%d items>' % len(value) #else: # if len(value) > 75: # value = repr(value[:70]+u' ... ') # else: # value = repr(value) value = repr(value) return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.tag, value) class ScalarNode(Node): id = 'scalar' def __init__(self, tag, value, start_mark=None, end_mark=None, style=None): self.tag = tag self.value = value self.start_mark = start_mark self.end_mark = end_mark self.style = style class CollectionNode(Node): def __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None): self.tag = tag self.value = value self.start_mark = start_mark self.end_mark = end_mark self.flow_style = flow_style class SequenceNode(CollectionNode): id = 'sequence' class MappingNode(CollectionNode): id = 'mapping'
Upload File
Create Folder