Changeset 258 for pyyaml/trunk/lib/yaml/constructor.py
- Timestamp:
- 08/21/07 16:25:34 (6 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib/yaml/constructor.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/constructor.py
r251 r258 37 37 if self.check_node(): 38 38 return self.construct_document(self.get_node()) 39 40 def get_single_data(self): 41 # Ensure that the stream contains a single document and construct it. 42 node = self.get_single_node() 43 if node is not None: 44 return self.construct_document(node) 45 return None 39 46 40 47 def construct_document(self, node):
Note: See TracChangeset
for help on using the changeset viewer.
