From de62ac190d51284fee7390c4f195499d97997244 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 2 Feb 2025 23:09:32 +0100 Subject: [PATCH] yapftests: Remove unused imports --- yapftests/main_test.py | 1 - yapftests/reformatter_basic_test.py | 1 - yapftests/reformatter_python3_test.py | 1 - yapftests/subtype_assigner_test.py | 1 - yapftests/yapf_test.py | 5 ----- 5 files changed, 9 deletions(-) diff --git a/yapftests/main_test.py b/yapftests/main_test.py index b5d9b926e..232180c82 100644 --- a/yapftests/main_test.py +++ b/yapftests/main_test.py @@ -15,7 +15,6 @@ """Tests for yapf.__init__.main.""" import sys -import unittest from contextlib import contextmanager from io import StringIO diff --git a/yapftests/reformatter_basic_test.py b/yapftests/reformatter_basic_test.py index 74b1ba405..287b88c04 100644 --- a/yapftests/reformatter_basic_test.py +++ b/yapftests/reformatter_basic_test.py @@ -13,7 +13,6 @@ # limitations under the License. """Basic tests for yapf.reformatter.""" -import sys import textwrap import unittest diff --git a/yapftests/reformatter_python3_test.py b/yapftests/reformatter_python3_test.py index f5741b313..1c5cd0908 100644 --- a/yapftests/reformatter_python3_test.py +++ b/yapftests/reformatter_python3_test.py @@ -13,7 +13,6 @@ # limitations under the License. """Python 3 tests for yapf.reformatter.""" -import sys import textwrap import unittest diff --git a/yapftests/subtype_assigner_test.py b/yapftests/subtype_assigner_test.py index 01b371051..4e25228ea 100644 --- a/yapftests/subtype_assigner_test.py +++ b/yapftests/subtype_assigner_test.py @@ -17,7 +17,6 @@ import unittest from yapf.pytree import pytree_utils -from yapf.yapflib import format_token from yapf.yapflib import subtypes from yapftests import yapf_test_helper diff --git a/yapftests/yapf_test.py b/yapftests/yapf_test.py index a9ca01188..c6493d2eb 100644 --- a/yapftests/yapf_test.py +++ b/yapftests/yapf_test.py @@ -15,17 +15,12 @@ """Tests for yapf.yapf.""" import io -import logging -import os import shutil import subprocess import sys import tempfile import textwrap import unittest -from io import StringIO - -from yapf_third_party._ylib2to3.pgen2 import tokenize from yapf.yapflib import errors from yapf.yapflib import style