diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-11-02 13:01:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-02 12:01:10 +0000 |
commit | f5627ce4cc9e280fa942eaf3810816a398ad5fd5 (patch) | |
tree | 3c05642e359e3ae026570a38a8796fe2f4118107 /python | |
parent | 7e643f46d7ab08bd59421ef8f137936c61f76ea2 (diff) | |
download | servo-f5627ce4cc9e280fa942eaf3810816a398ad5fd5.tar.gz servo-f5627ce4cc9e280fa942eaf3810816a398ad5fd5.zip |
Remove `__future__` imports that are no longer necessary (#30661)
These are no longer necessary as we always use Python 3.
Diffstat (limited to 'python')
-rw-r--r-- | python/mach_bootstrap.py | 2 | ||||
-rw-r--r-- | python/servo/bootstrap_commands.py | 2 | ||||
-rw-r--r-- | python/servo/build_commands.py | 2 | ||||
-rw-r--r-- | python/servo/command_base.py | 2 | ||||
-rw-r--r-- | python/servo/devenv_commands.py | 1 | ||||
-rw-r--r-- | python/servo/mutation/mutator.py | 2 | ||||
-rw-r--r-- | python/servo/package_commands.py | 2 | ||||
-rw-r--r-- | python/servo/post_build_commands.py | 2 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 2 | ||||
-rw-r--r-- | python/servo/util.py | 2 |
10 files changed, 1 insertions, 18 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index df71cb838d6..c8085315219 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -2,8 +2,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals - import os import platform import sys diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index b5b833d1e2d..1c7afc957d8 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import absolute_import, print_function, unicode_literals - import base64 import glob import json diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index d354ca02df4..cd977dfe91d 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function, unicode_literals - import datetime import locale import os diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 752cdda4474..c8de5a8ca61 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -7,7 +7,7 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function, annotations +from __future__ import annotations import contextlib from enum import Enum diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 0ce5c7da6f0..dd4009fe8c2 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -7,7 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function, unicode_literals from os import path, listdir, getcwd import signal diff --git a/python/servo/mutation/mutator.py b/python/servo/mutation/mutator.py index 0f359cb5107..137f0d13e45 100644 --- a/python/servo/mutation/mutator.py +++ b/python/servo/mutation/mutator.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function - import fileinput import re import random diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index bc93f7e4200..62ae60f5fa6 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import absolute_import, print_function, unicode_literals - from datetime import datetime from github import Github diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index cb7ea7a63bb..56394bbb3e3 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function, unicode_literals - import json import os import os.path as path diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 2dc432a51ee..0d9b0818929 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import print_function, unicode_literals - import argparse import logging import re diff --git a/python/servo/util.py b/python/servo/util.py index fb1efcf382d..f6b430a8f26 100644 --- a/python/servo/util.py +++ b/python/servo/util.py @@ -7,8 +7,6 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. -from __future__ import absolute_import, print_function, unicode_literals - import hashlib import os import os.path |