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

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

Merge "init: python3." am: ba62af23

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

Change-Id: Ie9a09fae7183abb57f09a1b4467bc5d4bb2001d7
parents 8e36d3a2 ba62af23
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=' ')