Skip to content

Commit 570cbc7

Browse files
committed
add import WinError from ctypes
1 parent c36be9e commit 570cbc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/clipboard/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import contextlib
4646
import ctypes
4747
from ctypes import (
48+
WinError,
4849
c_size_t,
4950
c_wchar,
5051
c_wchar_p,
@@ -94,7 +95,7 @@ class PyperclipException(RuntimeError):
9495

9596
class PyperclipWindowsException(PyperclipException):
9697
def __init__(self, message) -> None:
97-
message += f" ({ctypes.WinError()})"
98+
message += f" ({WinError()})"
9899
super().__init__(message)
99100

100101

0 commit comments

Comments
 (0)