diff options
| author | William Deegan <bill@baddogconsulting.com> | 2016-09-28 15:30:01 (GMT) |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2016-09-28 15:30:01 (GMT) |
| commit | f66bfed3936cd5fb7fa720cf0430ded4defe669a (patch) | |
| tree | adc1f2037035eda63a7a338d430abb13300d1c8f /src/engine/SCons/cpp.py | |
| parent | ac503a65602a0936f728333545953fe04d5f82b3 (diff) | |
| parent | 6dd3fd8b838d18d65edd6e7adabf3a363437f8a9 (diff) | |
| download | SCons-f66bfed3936cd5fb7fa720cf0430ded4defe669a.zip SCons-f66bfed3936cd5fb7fa720cf0430ded4defe669a.tar.gz SCons-f66bfed3936cd5fb7fa720cf0430ded4defe669a.tar.bz2 | |
update from upstream
Diffstat (limited to 'src/engine/SCons/cpp.py')
| -rw-r--r-- | src/engine/SCons/cpp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/cpp.py b/src/engine/SCons/cpp.py index 60cfcea..18f154a 100644 --- a/src/engine/SCons/cpp.py +++ b/src/engine/SCons/cpp.py @@ -72,7 +72,7 @@ cpp_lines_dict = { # the corresponding compiled regular expression that fetches the arguments # we care about. Table = {} -for op_list, expr in cpp_lines_dict.items(): +for op_list, expr in list(cpp_lines_dict.items()): e = re.compile(expr) for op in op_list: Table[op] = e @@ -87,7 +87,7 @@ del op_list override = { 'if' : 'if(?!def)', } -l = [override.get(x, x) for x in Table.keys()] +l = [override.get(x, x) for x in list(Table.keys())] # Turn the list of expressions into one big honkin' regular expression @@ -130,7 +130,7 @@ CPP_to_Python_Ops_Sub = lambda m: CPP_to_Python_Ops_Dict[m.group(0)] # re module, as late as version 2.2.2, empirically matches the # "!" in "!=" first, instead of finding the longest match. # What's up with that? -l = sorted(CPP_to_Python_Ops_Dict.keys(), key=lambda a: len(a), reverse=True) +l = sorted(list(CPP_to_Python_Ops_Dict.keys()), key=lambda a: len(a), reverse=True) # Turn the list of keys into one regular expression that will allow us # to substitute all of the operators at once. @@ -266,7 +266,7 @@ class PreProcessor(object): d = { 'scons_current_file' : self.scons_current_file } - for op in Table.keys(): + for op in list(Table.keys()): d[op] = getattr(self, 'do_' + op) self.default_table = d |
