Skip to content

Commit

Permalink
Remove no-op __future__ imports
Browse files Browse the repository at this point in the history
These are all no-op (mandatory) since Python 3.0:
https://docs.python.org/3/library/__future__.html
  • Loading branch information
foolip committed Mar 21, 2023
1 parent 3f91ec4 commit a4d313f
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions annotation-model/tools/make_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This tool creates .html test files for the WPT harness from corresponding .test
# files that it finds in the tree for this test collection.

from __future__ import print_function

import re
import time
import json
Expand Down
2 changes: 0 additions & 2 deletions annotation-protocol/tools/protocol-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Developed by Benjamin Young (@bigbulehat) and Shane McCarron (@halindrome).
# Sponsored by Spec-Ops (https://spec-ops.io)

from __future__ import print_function

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions annotation-vocab/tools/vocab_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# License: Apache2
# Last Modified: 2016-09-02

from __future__ import print_function

import json
from rdflib import ConjunctiveGraph, URIRef
from pyld import jsonld
Expand Down
2 changes: 0 additions & 2 deletions common/security-features/tools/generate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import argparse
import collections
import copy
Expand Down
2 changes: 0 additions & 2 deletions common/security-features/tools/spec_validator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import json, sys


Expand Down
2 changes: 0 additions & 2 deletions common/security-features/tools/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import os, sys, json, json5, re
import collections

Expand Down
2 changes: 0 additions & 2 deletions css/css-fonts/support/fonts/makegsubfonts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import os
import textwrap
from xml.etree import ElementTree
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
reftest.list to the stdout.
"""

from __future__ import unicode_literals, print_function, absolute_import

TEST_FILE = 'text-emphasis-line-height-{:03}{}.html'
TEST_TEMPLATE = '''<!DOCTYPE html>
<meta charset="utf-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
tests it generated in the format of Mozilla reftest.list to the stdout.
"""

from __future__ import unicode_literals, print_function, absolute_import

import itertools

TEST_FILE = 'text-emphasis-position-property-{:03}{}.html'
Expand Down
2 changes: 0 additions & 2 deletions css/css-text-decor/tools/generate-text-emphasis-ruby-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
tests it generated in the format of Mozilla reftest.list to the stdout.
"""

from __future__ import unicode_literals, print_function, absolute_import

TEST_FILE = 'text-emphasis-ruby-{:03}{}.html'
TEST_TEMPLATE = '''<!DOCTYPE html>
<meta charset="utf-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
tests it generated in the format of Mozilla reftest.list to the stdout.
"""

from __future__ import unicode_literals, print_function, absolute_import

TEST_FILE = 'text-emphasis-style-property-{:03}{}.html'
TEST_TEMPLATE = '''<!DOCTYPE html>
<meta charset="utf-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
tests it generated in the format of Mozilla reftest.list to the stdout.
"""

from __future__ import unicode_literals, print_function, absolute_import

TEST_FILE = 'segment-break-transformation-rules-{:03}.html'
TEST_TEMPLATE = '''<!DOCTYPE html>
<meta charset="utf-8">
Expand Down
2 changes: 0 additions & 2 deletions dom/nodes/Document-createElement-namespace-tests/generate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python

from __future__ import print_function

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions encrypted-media/polyfill/make-polyfill-tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python

from __future__ import print_function

import os, re, os.path, glob

head = re.compile( r"^(\s*</head>)", re.MULTILINE )
Expand Down
2 changes: 0 additions & 2 deletions html/tools/update_html5lib_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import glob
import hashlib
import itertools
Expand Down
2 changes: 0 additions & 2 deletions infrastructure/assumptions/tools/ahem-generate-table.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function, unicode_literals

import itertools
import unicodedata

Expand Down
2 changes: 0 additions & 2 deletions subresource-integrity/tools/generate_javascript.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from os import path, listdir
from hashlib import sha512, sha256, md5
from base64 import b64encode
Expand Down
2 changes: 0 additions & 2 deletions subresource-integrity/tools/list_hashes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from os import path, listdir
from hashlib import sha512, sha384, sha256, md5
from base64 import b64encode
Expand Down
2 changes: 0 additions & 2 deletions webdriver/tests/support/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import collections
import math
import sys
Expand Down

0 comments on commit a4d313f

Please sign in to comment.