Skip to content

Commit

Permalink
Use python3 in all run lines
Browse files Browse the repository at this point in the history
We already did this in some, this converts the rest.
Also chmod +x on write_fake_manifests.py while here.
  • Loading branch information
nico committed Jan 10, 2023
1 parent addf582 commit 6a17e84
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions configure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions misc/measure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2011 Google Inc. All Rights Reserved.
#
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion misc/ninja_syntax_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2011 Google Inc. All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion misc/write_fake_manifests.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Writes large manifest files, for manifest parser performance testing.
Expand Down
4 changes: 1 addition & 3 deletions src/browse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright 2001 Google Inc. All Rights Reserved.
#
Expand All @@ -20,8 +20,6 @@
it when needed.
"""

from __future__ import print_function

try:
import http.server as httpserver
import socketserver
Expand Down

0 comments on commit 6a17e84

Please sign in to comment.