diff options
author | Christopher Ferris <cferris@google.com> | 2021-04-19 13:50:16 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2021-04-19 17:02:38 -0700 |
commit | ac7ec11473f9573750d429f066adda1c2b928212 (patch) | |
tree | 68cea0125493a8d944a8cae247f20276391acfe3 /libc/kernel/tools/utils.py | |
parent | b82fcdaf36d6a48e56c9849f06bb5f2bc019a0b2 (diff) |
Update for python3.
This fixes all of the problems with our kernel scripts, but not
the clang python script problems.
I also removed the updateGitFiles function since that code was
just silently failing any way. I replaced all calls with updateFiles.
Test: Ran script using python2 to verify it still works.
Test: Run script in python3 verifying that it starts to run.
Change-Id: I223a31a8324c59e6bc4067f48a6110361b3e26e8
Diffstat (limited to 'libc/kernel/tools/utils.py')
-rw-r--r-- | libc/kernel/tools/utils.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libc/kernel/tools/utils.py b/libc/kernel/tools/utils.py index 1b06b1b48..3b4828b5a 100644 --- a/libc/kernel/tools/utils.py +++ b/libc/kernel/tools/utils.py @@ -1,6 +1,5 @@ # common python utility routines for the Bionic tool scripts -import commands import logging import os import string @@ -146,19 +145,3 @@ class BatchFileUpdater: for dst in sorted(deletes): os.remove(dst) - - def updateGitFiles(self): - adds, deletes, edits = self.getChanges() - - if adds: - for dst in sorted(adds): - self._writeFile(dst) - commands.getoutput("git add " + " ".join(adds)) - - if deletes: - commands.getoutput("git rm " + " ".join(deletes)) - - if edits: - for dst in sorted(edits): - self._writeFile(dst) - commands.getoutput("git add " + " ".join(edits)) |