Changeset 335
- Timestamp:
- 12/30/08 09:55:47 (4 years ago)
- Location:
- pyyaml/trunk
- Files:
-
- 3 edited
-
ext/_yaml.h (modified) (1 diff)
-
setup.cfg (modified) (1 diff)
-
tests/lib/test_input_output.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/ext/_yaml.h
r334 r335 4 4 #if PY_MAJOR_VERSION < 3 5 5 6 #define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), 'strict')6 #define PyUnicode_FromString(s) PyUnicode_DecodeUTF8((s), strlen(s), "strict") 7 7 8 8 #else -
pyyaml/trunk/setup.cfg
r322 r335 34 34 #define=YAML_DECLARE_STATIC 35 35 36 # The following options are used to build PyYAML Windows installer 37 # for Python 3.0 on my PC: 38 #include_dirs=../../../libyaml/tags/0.1.2/include 39 #library_dirs=../../../libyaml/tags/0.1.2/win32/vs2008/output/release/lib 40 #define=YAML_DECLARE_STATIC -
pyyaml/trunk/tests/lib/test_input_output.py
r334 r335 5 5 def _unicode_open(file, encoding, errors='strict'): 6 6 info = codecs.lookup(encoding) 7 srw = codecs.StreamReaderWriter(file, info.streamreader, info.streamwriter, errors) 7 if isinstance(info, tuple): 8 reader = info[2] 9 writer = info[3] 10 else: 11 reader = info.streamreader 12 writer = info.streamwriter 13 srw = codecs.StreamReaderWriter(file, reader, writer, errors) 8 14 srw.encoding = encoding 9 15 return srw
Note: See TracChangeset
for help on using the changeset viewer.
