Skip to content

Commit

Permalink
Update script shebangs to python3 (elastic#15701)
Browse files Browse the repository at this point in the history
Use python3 in the shebang for python scripts. python is going to be reserved for python2 in Ubuntu, and PEP394 mentions that python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.
  • Loading branch information
andrewkroh authored Jan 22, 2020
1 parent 0905f7a commit cf68d9d
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dev-tools/aggregate_coverage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Simple script to concatenate coverage reports.
"""
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/deploy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import argparse
from subprocess import check_call
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/get_version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import re
import argparse
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/merge_pr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import argparse
from subprocess import check_call, call, check_output
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/open_pr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""Open a PR from the current branch"""

import sys
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/promote_docs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
from subprocess import check_call

Expand Down
2 changes: 1 addition & 1 deletion dev-tools/set_docs_version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
from subprocess import check_call

Expand Down
2 changes: 1 addition & 1 deletion dev-tools/set_version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
import os
import re
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/system/test_input.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from filebeat import BaseTest
import os
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/system/test_registrar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""Test the registrar"""
import os
import platform
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/system/test_registrar_upgrade.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""Test the registrar with old registry file formats"""

import os
Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/system/test_stdin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from filebeat import BaseTest
import os
Expand Down
2 changes: 1 addition & 1 deletion libbeat/scripts/generate_makefile_doc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This script generates and output a documentation from a list of Makefile files
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/tcp_counter_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/tcp_delete.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

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

import mc

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

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/tcp_stats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/udp_counter_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/udp_delete.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/udp_multi_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down
2 changes: 1 addition & 1 deletion packetbeat/tests/system/gen/memcache/udp_single_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import mc

Expand Down

0 comments on commit cf68d9d

Please sign in to comment.