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

Commit 407d214b authored by Cole Faust's avatar Cole Faust
Browse files

Convert findleaves.py to python 3

Kati special-cases findleaves.py to an internal
C++ implementation, so I don't think this python
script is even used. Update it anyways, and
test by manually running findleaves.py.

Bug: 203436762
Test: ./build/make/tools/findleaves.py --mindepth=2 --dir=build/make/target Android.mk
Change-Id: If27cc37d8f673388c0e31b9491e792b98ca59da4
parent 3946ea03
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (C) 2009 The Android Open Source Project
#
@@ -121,7 +121,7 @@ def main(argv):
  results = list(set(perform_find(mindepth, prune, dirlist, filenames)))
  results.sort()
  for r in results:
    print r
    print(r)

if __name__ == "__main__":
  main(sys.argv)