Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/scripts/ns-html2rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, re, subprocess

def run():
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/Dependencies/Inputs/fake-build-for-bitcode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Emulates the frontend of an -embed-bitcode job. That means we have to handle
# -emit-bc and -c actions.
Expand Down
2 changes: 1 addition & 1 deletion test/Driver/Dependencies/Inputs/fake-build-whole-module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Emulates the frontend of a -whole-module-optimization compilation.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# modify-non-primary-files.py simulates a build where the user is modifying the
# source files during compilation.
Expand Down
4 changes: 2 additions & 2 deletions test/Driver/Dependencies/Inputs/update-dependencies-bad.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Fails if the input file is named "bad.swift"; otherwise dispatches to
# update-dependencies.py.
Expand All @@ -12,7 +12,7 @@

if os.path.basename(primaryFile) == 'bad.swift':
print "Handled", os.path.basename(primaryFile)
exit(1)
sys.exit(1)

dir = os.path.dirname(os.path.abspath(__file__))
execfile(os.path.join(dir, "update-dependencies.py"))
2 changes: 1 addition & 1 deletion test/Driver/Dependencies/Inputs/update-dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# update-dependencies.py simulates a Swift compilation for the purposes of
# dependency analysis. That means it has two tasks:
Expand Down
2 changes: 1 addition & 1 deletion test/Inputs/getmtime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion utils/apply-fixit-edits.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

#===--- apply-fixit-edits.py - Tool for applying edits from .remap files ---===#
#
Expand Down
2 changes: 1 addition & 1 deletion utils/demo-tool
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import json
import optparse
Expand Down
2 changes: 1 addition & 1 deletion utils/gyb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# GYB: Generate Your Boilerplate (improved names welcome; at least
# this one's short). See -h output for instructions

Expand Down
2 changes: 1 addition & 1 deletion utils/pre-commit-benchmark
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# Note: it doesn't matter what directory you invoke this in; it uses
# your SWIFT_BUILD_ROOT and SWIFT_SOURCE_ROOT settings, just like
Expand Down
2 changes: 1 addition & 1 deletion utils/recursive-lipo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import argparse
import os.path
Expand Down
2 changes: 1 addition & 1 deletion utils/submit-benchmark-results
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Utility script for submitting benchmark results to an LNT server.
Expand Down
2 changes: 1 addition & 1 deletion utils/viewcfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# A script for viewing the CFG of SIL and llvm IR.

Expand Down