diff --git a/usb1/__init__.py b/usb1/__init__.py index 75a40f2..b1562b9 100644 --- a/usb1/__init__.py +++ b/usb1/__init__.py @@ -2100,6 +2100,7 @@ def refcount(self): 'Use "with USBContext() as context:" for safer cleanup' ' on interpreter shutdown. See also USBContext.open().', DeprecationWarning, + stacklevel=4 ) self.open() self.__context_refcount += 1