summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-10 10:46:45 -0500
committerNico Weber <thakis@chromium.org>2023-01-10 10:46:45 -0500
commit6a17e84370064eec6f22cfb1717ab80cf898d82b (patch)
tree7fd2ca231b8571d1c1ae3715f1b8685798d65e2b
parentaddf582af8b4f13b8f22efa2cfeff6cb4d9be8e9 (diff)
downloadninja-6a17e84370064eec6f22cfb1717ab80cf898d82b.tar.gz
Use python3 in all run lines
We already did this in some, this converts the rest. Also chmod +x on write_fake_manifests.py while here.
-rwxr-xr-xconfigure.py4
-rwxr-xr-xmisc/measure.py4
-rwxr-xr-xmisc/ninja_syntax_test.py2
-rwxr-xr-x[-rw-r--r--]misc/write_fake_manifests.py2
-rwxr-xr-xsrc/browse.py4
5 files changed, 5 insertions, 11 deletions
diff --git a/configure.py b/configure.py
index 09c5b28..588250a 100755
--- a/configure.py
+++ b/configure.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
@@ -19,8 +19,6 @@
Projects that use ninja themselves should either write a similar script
or use a meta-build system that supports Ninja output."""
-from __future__ import print_function
-
from optparse import OptionParser
import os
import pipes
diff --git a/misc/measure.py b/misc/measure.py
index 8ce95e6..f3825ef 100755
--- a/misc/measure.py
+++ b/misc/measure.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2011 Google Inc. All Rights Reserved.
#
@@ -17,8 +17,6 @@
"""measure the runtime of a command by repeatedly running it.
"""
-from __future__ import print_function
-
import time
import subprocess
import sys
diff --git a/misc/ninja_syntax_test.py b/misc/ninja_syntax_test.py
index 90ff9c6..61fb177 100755
--- a/misc/ninja_syntax_test.py
+++ b/misc/ninja_syntax_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright 2011 Google Inc. All Rights Reserved.
#
diff --git a/misc/write_fake_manifests.py b/misc/write_fake_manifests.py
index abcb677..bf9cf7d 100644..100755
--- a/misc/write_fake_manifests.py
+++ b/misc/write_fake_manifests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Writes large manifest files, for manifest parser performance testing.
diff --git a/src/browse.py b/src/browse.py
index 653cbe9..b125e80 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
@@ -20,8 +20,6 @@ This script is inlined into the final executable and spawned by
it when needed.
"""
-from __future__ import print_function
-
try:
import http.server as httpserver
import socketserver