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.
1 parent f482e96 commit f96722cCopy full SHA for f96722c
captchatools/__init__.py
@@ -23,6 +23,7 @@
23
from abc import ABC, abstractmethod
24
from typing import Optional
25
from . import exceptions as captchaExceptions
26
+from warnings import warn
27
class Harvester(ABC):
28
'''
29
Represents a captcha harvester.
@@ -87,4 +88,5 @@ def new_harvester(**kwargs) -> Harvester:
87
88
89
# Just for backward compatibility
90
def captcha_harvesters(**kwargs) -> Harvester:
91
+ warn('This function is deprecated. Use the `new_harvester() function`', DeprecationWarning, stacklevel=2)
92
return new_harvester(**kwargs)
0 commit comments