Changeset 350 for pyyaml/trunk/ext/_yaml.pyx
- Timestamp:
- 08/29/09 15:15:31 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/ext/_yaml.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/ext/_yaml.pyx
r348 r350 1381 1381 anchor = NULL 1382 1382 if anchor_object is not None: 1383 anchor = PyString_AS_STRING(PyUnicode_AsUTF8String(anchor_object)) 1383 if PyUnicode_CheckExact(anchor_object): 1384 anchor_object = PyUnicode_AsUTF8String(anchor_object) 1385 if not PyString_CheckExact(anchor_object): 1386 if PY_MAJOR_VERSION < 3: 1387 raise TypeError("anchor must be a string") 1388 else: 1389 raise TypeError(u"anchor must be a string") 1390 anchor = PyString_AS_STRING(anchor_object) 1384 1391 if node in self.serialized_nodes: 1385 1392 if yaml_alias_event_initialize(&event, anchor) == 0:
Note: See TracChangeset
for help on using the changeset viewer.
