Changeset 361 for pyyaml/trunk/ext/_yaml.pyx
- Timestamp:
- 08/30/09 15:32:07 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/ext/_yaml.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/ext/_yaml.pyx
r350 r361 955 955 self.stream = stream 956 956 self.dump_unicode = 0 957 try:958 if stream.encoding:957 if PY_MAJOR_VERSION < 3: 958 if hasattr(stream, 'encoding'): 959 959 self.dump_unicode = 1 960 except AttributeError: 961 pass 960 else: 961 if hasattr(stream, u'encoding'): 962 self.dump_unicode = 1 962 963 self.use_encoding = encoding 963 964 yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)
Note: See TracChangeset
for help on using the changeset viewer.
