Skip to content

Commit 5bfc364

Browse files
committed
Remove all deprecated codes
1 parent 385cc95 commit 5bfc364

98 files changed

Lines changed: 2 additions & 20299 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.rst

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -350,39 +350,11 @@ LINE's SDK developer team decided to generate SDK code based on OpenAPI spec. ht
350350

351351
As a result, LINE bot sdk 3.x is not compatible with 2.x. It can follow the future API changes very quickly.
352352

353-
We will be maintaining only ``linebot.v3`` going forward.
354-
To utilize the latest features, we recommend you gradually transition to ``linebot.v3`` modules in your application, although you can still continue to use the 2.x ``linebot`` modules.
355-
356-
While we won't update ``linebot`` modules anymore, users can still continue to use the version 2.x ``linebot`` modules.
357-
We also welcome pull requests for the version ``2.x`` and ``3.x`` modules.
353+
The legacy ``linebot`` (v2) modules have been removed. Only ``linebot.v3`` is supported.
358354

359355
For a step-by-step migration guide with before/after examples, see `MIGRATION.md <MIGRATION.md>`__.
360356

361357

362-
How to suppress deprecation warnings
363-
------------------------------------
364-
If you keep using old line-bot-sdk library (``version < 3.x``) but use ``3.x``, you'll get
365-
366-
::
367-
368-
LineBotSdkDeprecatedIn30: Call to deprecated method get_bot_info. (Use 'from linebot.v3 import LineBotClient' and 'LineBotClient(...).get_bot_info(...)' instead. See https://github.com/line/line-bot-sdk-python/blob/master/README.rst for more details.) -- Deprecated since version 3.0.0.
369-
370-
371-
If it's noisy, you can suppress this warning as follows.
372-
373-
374-
.. code:: python
375-
376-
import warnings
377-
from linebot import LineBotSdkDeprecatedIn30
378-
379-
## your code here
380-
...
381-
382-
if __name__ == '__main__':
383-
warnings.filterwarnings("ignore", category=LineBotSdkDeprecatedIn30)
384-
385-
386358
Contributing
387359
------------
388360
Please check `CONTRIBUTING <CONTRIBUTING.md>`__ before making a contribution.

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Contents:
1212
:maxdepth: 4
1313

1414
linebot.v3
15-
linebot
1615

1716

1817
Indices and tables

linebot/__init__.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,3 @@
1818
from .__about__ import ( # noqa
1919
__version__
2020
)
21-
from .api import ( # noqa
22-
LineBotApi,
23-
)
24-
from .async_api import ( # noqa
25-
AsyncLineBotApi,
26-
)
27-
from .http_client import ( # noqa
28-
HttpClient,
29-
RequestsHttpClient,
30-
HttpResponse,
31-
)
32-
from .async_http_client import ( # noqa
33-
AsyncHttpClient,
34-
AsyncHttpResponse,
35-
)
36-
from .webhook import ( # noqa
37-
SignatureValidator,
38-
WebhookParser,
39-
WebhookHandler,
40-
WebhookPayload,
41-
)
42-
43-
from .deprecations import (
44-
LineBotSdkDeprecationWarning,
45-
LineBotSdkDeprecatedIn30,
46-
)

linebot/aiohttp_async_http_client.py

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)