Changeset e96b318 in serd


Ignore:
Timestamp:
Sep 27, 2017, 12:10:42 AM (7 weeks ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
2c88a44
Parents:
6213467
Message:

Fix wscript for Python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r6213467 re96b318  
    2929             'largefile':    'Build with large file support on 32-bit systems',
    3030             'no-posix':     'Do not use POSIX functions, even if present'}
    31     for name, desc in flags.iteritems():
     31    for name, desc in flags.items():
    3232        opt.add_option('--' + name, action='store_true',
    3333                       dest=name.replace('-', '_'), help=desc)
     
    5757        for name, header in {'posix_memalign': 'stdlib.h',
    5858                             'posix_fadvise':  'fcntl.h',
    59                              'fileno':         'stdio.h'}.iteritems():
     59                             'fileno':         'stdio.h'}.items():
    6060            conf.check(function_name = name,
    6161                       header_name   = header,
     
    288288        proc  = subprocess.Popen(['./serdi_static', filename], stdout=subprocess.PIPE)
    289289        for line in proc.communicate()[0].splitlines():
    290             matches = re.match('<([^ ]*)> <([^ ]*)> <([^ ]*)> \.', line)
     290            matches = re.match('<([^ ]*)> <([^ ]*)> <([^ ]*)> \.', line.decode('utf-8'))
    291291            if matches:
    292292                if matches.group(1) not in model:
     
    315315    def run_tests(test_class, expected_return):
    316316        tests = []
    317         for s, desc in model.iteritems():
     317        for s, desc in model.items():
    318318            if str(test_class) in desc['http://www.w3.org/1999/02/22-rdf-syntax-ns#type']:
    319319                tests += [s]
Note: See TracChangeset for help on using the changeset viewer.