Ignore:
Timestamp:
12/30/08 08:30:52 (5 years ago)
Author:
xi
Message:

Fixed str/bytes issues with Python 3 in _yaml.pyx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/lib/test_input_output.py

    r333 r334  
    5454    data = open(unicode_filename, 'rb').read().decode('utf-8') 
    5555    value = ' '.join(data.split()) 
    56     for encoding in [None, 'utf-8', 'utf-16-be', 'utf-16-le']: 
    57         for allow_unicode in [False, True]: 
    58             data1 = yaml.dump(value, allow_unicode=allow_unicode) 
     56    for allow_unicode in [False, True]: 
     57        data1 = yaml.dump(value, allow_unicode=allow_unicode) 
     58        for encoding in [None, 'utf-8', 'utf-16-be', 'utf-16-le']: 
    5959            stream = StringIO.StringIO() 
    6060            yaml.dump(value, _unicode_open(stream, 'utf-8'), encoding=encoding, allow_unicode=allow_unicode) 
Note: See TracChangeset for help on using the changeset viewer.