From eed67e220907105bc776e121fc19001028762c83 Mon Sep 17 00:00:00 2001 From: newwingbird Date: Fri, 11 Oct 2024 20:31:48 +0900 Subject: [PATCH] Remove unnecessary import statements --- comtypes/client/_events.py | 1 - comtypes/client/_generate.py | 1 - comtypes/shelllink.py | 1 - comtypes/test/__init__.py | 1 - comtypes/test/find_memleak.py | 1 - comtypes/test/test_agilent.py | 1 - comtypes/test/test_createwrappers.py | 2 -- comtypes/test/test_excel.py | 1 - comtypes/test/test_variant.py | 2 -- 9 files changed, 11 deletions(-) diff --git a/comtypes/client/_events.py b/comtypes/client/_events.py index 98a55295..4a275ecc 100644 --- a/comtypes/client/_events.py +++ b/comtypes/client/_events.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ctypes import traceback import comtypes diff --git a/comtypes/client/_generate.py b/comtypes/client/_generate.py index 740209d5..1d105a33 100644 --- a/comtypes/client/_generate.py +++ b/comtypes/client/_generate.py @@ -1,4 +1,3 @@ -from __future__ import print_function import ctypes import importlib import inspect diff --git a/comtypes/shelllink.py b/comtypes/shelllink.py index fe404c76..a0cf0359 100644 --- a/comtypes/shelllink.py +++ b/comtypes/shelllink.py @@ -1,4 +1,3 @@ -from __future__ import print_function from ctypes import c_char_p, c_int, c_short, c_wchar_p from ctypes import POINTER from ctypes import byref, create_string_buffer, create_unicode_buffer diff --git a/comtypes/test/__init__.py b/comtypes/test/__init__.py index 7879c6b2..4df7c51c 100644 --- a/comtypes/test/__init__.py +++ b/comtypes/test/__init__.py @@ -1,6 +1,5 @@ # comtypes.test package. -from __future__ import print_function import ctypes import getopt import os diff --git a/comtypes/test/find_memleak.py b/comtypes/test/find_memleak.py index 7404fdbf..d27e68e1 100644 --- a/comtypes/test/find_memleak.py +++ b/comtypes/test/find_memleak.py @@ -1,4 +1,3 @@ -from __future__ import print_function import unittest, gc from ctypes import * from ctypes.wintypes import * diff --git a/comtypes/test/test_agilent.py b/comtypes/test/test_agilent.py index 8af6f840..c3a20283 100644 --- a/comtypes/test/test_agilent.py +++ b/comtypes/test/test_agilent.py @@ -2,7 +2,6 @@ # is installed. It is not requires to have a physical instrument # connected, the driver is used in simulation mode. -from __future__ import print_function import unittest from comtypes.test import ResourceDenied from comtypes.client import CreateObject diff --git a/comtypes/test/test_createwrappers.py b/comtypes/test/test_createwrappers.py index 3d9fee00..a6857fc8 100644 --- a/comtypes/test/test_createwrappers.py +++ b/comtypes/test/test_createwrappers.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import glob import os import unittest diff --git a/comtypes/test/test_excel.py b/comtypes/test/test_excel.py index b57bfdda..4087ac7d 100644 --- a/comtypes/test/test_excel.py +++ b/comtypes/test/test_excel.py @@ -1,5 +1,4 @@ # -*- coding: latin-1 -*- -from __future__ import print_function import datetime import sys diff --git a/comtypes/test/test_variant.py b/comtypes/test/test_variant.py index 5687d04b..f4d2a992 100644 --- a/comtypes/test/test_variant.py +++ b/comtypes/test/test_variant.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import datetime import decimal import sys