Update normalize_path.py to Python 3.

Test: presubmits.
Change-Id: I2db4fedcbb658a7ca4efa3a4557a216b8682735d
This commit is contained in:
Lukacs T. Berki 2022-10-20 08:11:18 +00:00
parent 92c35bda12
commit 740641571c

View file

@ -22,8 +22,8 @@ import sys
if len(sys.argv) > 1: if len(sys.argv) > 1:
for p in sys.argv[1:]: for p in sys.argv[1:]:
print os.path.normpath(p) print(os.path.normpath(p))
sys.exit(0) sys.exit(0)
for line in sys.stdin: for line in sys.stdin:
print os.path.normpath(line.strip()) print(os.path.normpath(line.strip()))