| Index: fix_encoding.py
|
| diff --git a/fix_encoding.py b/fix_encoding.py
|
| index 61bd742b495043b97a653a4fd6fda40eca087a52..87e54a579054aa1a9f5dee678b82b33ecc1d2853 100644
|
| --- a/fix_encoding.py
|
| +++ b/fix_encoding.py
|
| @@ -81,8 +81,6 @@ def fix_win_sys_argv(encoding):
|
| if _SYS_ARGV_PROCESSED:
|
| return False
|
|
|
| - # These types are available on linux but not Mac.
|
| - # pylint: disable=E0611,F0401
|
| from ctypes import byref, c_int, POINTER, windll, WINFUNCTYPE
|
| from ctypes.wintypes import LPCWSTR, LPWSTR
|
|
|
| @@ -188,8 +186,6 @@ class WinUnicodeConsoleOutput(WinUnicodeOutputBase):
|
| self._console_handle = console_handle
|
|
|
| # Loads the necessary function.
|
| - # These types are available on linux but not Mac.
|
| - # pylint: disable=E0611,F0401
|
| from ctypes import byref, GetLastError, POINTER, windll, WINFUNCTYPE
|
| from ctypes.wintypes import BOOL, DWORD, HANDLE, LPWSTR
|
| from ctypes.wintypes import LPVOID # pylint: disable=E0611
|
| @@ -270,8 +266,6 @@ class WinUnicodeOutput(WinUnicodeOutputBase):
|
|
|
| def win_handle_is_a_console(handle):
|
| """Returns True if a Windows file handle is a handle to a console."""
|
| - # These types are available on linux but not Mac.
|
| - # pylint: disable=E0611,F0401
|
| from ctypes import byref, POINTER, windll, WINFUNCTYPE
|
| from ctypes.wintypes import BOOL, DWORD, HANDLE
|
|
|
| @@ -303,8 +297,6 @@ def win_get_unicode_stream(stream, excepted_fileno, output_handle, encoding):
|
| """
|
| old_fileno = getattr(stream, 'fileno', lambda: None)()
|
| if old_fileno == excepted_fileno:
|
| - # These types are available on linux but not Mac.
|
| - # pylint: disable=E0611,F0401
|
| from ctypes import windll, WINFUNCTYPE
|
| from ctypes.wintypes import DWORD, HANDLE
|
|
|
|
|