Skip to content

Commit 5f84b9a

Browse files
committed
remove last references to Python 2
1 parent f368628 commit 5f84b9a

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

tests/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
import sys
33
import json
44
import os

tests/cat1-testcli.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hints": [
77
{
88
"class": "DockerRequirement",
9-
"dockerPull": "python:2-slim"
9+
"dockerPull": "python:3-slim"
1010
}
1111
],
1212
"inputs": [

tests/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22

33
# Toy program to generate inverted index of word to line.
44
# Takes input text file on stdin and prints output index on stdout.

tests/search.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Toy program to search inverted index and print out each line the term
44
# appears.
55

6-
from __future__ import print_function
7-
86
import sys
97

108
mainfile = sys.argv[1]
@@ -23,5 +21,5 @@
2321
for l in main:
2422
linenum += 1
2523
if linenum in n:
26-
print(linenum, l.rstrip())
24+
print(f"{linenum} {l.rstrip()}")
2725
break

tests/subdirsecondaries/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python2
1+
#!/usr/bin/env python3
22

33
# Toy program to generate inverted index of word to line.
44
# Takes input text file on stdin and prints output index on stdout.

tests/tmap-tool.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hints": [
77
{
88
"class": "DockerRequirement",
9-
"dockerPull": "python:2-slim"
9+
"dockerPull": "python:3-slim"
1010
}
1111
],
1212
"inputs": [

0 commit comments

Comments
 (0)