Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb9b27a1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "init: python3." am: ba62af23 am: e7b9de02 am: 270e4138 am: 81ba260d am: d5d4d0b8

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1798336

Change-Id: Ie496cab7099fb256f2019478171a18d351fa42ff
parents 98017dcf d5d4d0b8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
"""Generates the builtins map to be used by host_init_verifier.

It copies the builtin function map from builtins.cpp, then replaces do_xxx() functions with the
@@ -39,8 +39,7 @@ for line in function_map:
  match = DO_REGEX.match(line)
  if match:
    if match.group(1) in check_functions:
      print line.replace('do_', 'check_'),
      line = line.replace('do_', 'check_')
    else:
      print FUNCTION_REGEX.sub('check_stub', line),
  else:
    print line,
      line = FUNCTION_REGEX.sub('check_stub', line)
  print(line, end=' ')