We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5cba64 + 79e61f4 commit d54bdacCopy full SHA for d54bdac
tankersdk/tanker.py
@@ -5,6 +5,7 @@
5
from enum import Enum
6
import os
7
import weakref
8
+import warnings
9
10
11
from _tanker import ffi
@@ -695,6 +696,10 @@ async def get_device_list(self) -> List[Device]:
695
696
697
async def revoke_device(self, device_id: str) -> None:
698
"""Revoke the given device"""
699
+ warnings.warn(
700
+ 'The "revoke_device" method is deprecated, it will be removed in the future',
701
+ DeprecationWarning,
702
+ )
703
c_device_id = ffihelpers.str_to_c_string(device_id)
704
c_future = tankerlib.tanker_revoke_device(self.c_tanker, c_device_id)
705
await ffihelpers.handle_tanker_future(c_future)
0 commit comments