Skip to content

Commit 9e8b949

Browse files
authored
Merge pull request #14358 from Mab879/remove_py2ism
Remove some Python 2isms
2 parents b702651 + 3d9212c commit 9e8b949

78 files changed

Lines changed: 6 additions & 119 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build-scripts/build_all_guides.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
4-
53
"""
64
Takes given XCCDF or data stream and for every profile in it it generates one
75
OpenSCAP HTML guide. Also generates an index file that lists all the profiles

build-scripts/build_sce.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
will fail to interpret (thinking it is XML)!
2727
"""
2828

29-
from __future__ import print_function
3029

3130
import argparse
3231

build-scripts/build_templated_content.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
43

54
import argparse
65

build-scripts/build_xccdf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
43

54
import argparse
65
import os

build-scripts/compile_all.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21

32
import argparse
43
import os.path

build-scripts/cpe_generate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
43

54
import sys
65
import os

build-scripts/enable_derivatives.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
43

54
"""
65
Takes given XCCDF or data stream and adds RHEL derivative operating system(s) CPE name next

build-scripts/expand_jinja.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21

32
import os
43
import sys

build-scripts/generate_man_page.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from __future__ import print_function
43

54
import argparse
65
import ssg.build_profile

build-scripts/generate_manifest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function
21

32
import os
43
import json

0 commit comments

Comments
 (0)