Skip to content

Commit

Permalink
DEP: lib/utils: remove deprecated function
Browse files Browse the repository at this point in the history
create_request_session_from_bot was deprecated and is no longer used
#1404
  • Loading branch information
Sebastian Wagner authored and waldbauer-certat committed Feb 8, 2022
1 parent 9ebdd36 commit 0287c77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ CHANGELOG
- `intelmq.lib.utils`:
- New function `list_all_bots` to list all available/installed bots as replacement for the BOTS file (#368, #552, #644, #757, #1069, #1750, PR#1751 by Sebastian Waldbauer).
- New function `get_bots_settings` to return the effective bot parameters, with global parameters applied.
- Removed deprecated function `create_request_session_from_bot` (PR#1997 by Sebastian Wagner, #1404).
- `intelmq.lib.bot_debugger`:
- Set bot's `logging_level` directly in `__init__` before the bot's initialization by changing the default value (by Sebastian Wagner).
- Rewrite `load_configuration_patch` by adapting it to the parameter and configuration rewrite (by Sebastian Wagner).
Expand Down
7 changes: 0 additions & 7 deletions intelmq/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,6 @@ def send(self, *args, **kwargs):
return super().send(*args, **kwargs)


def create_request_session_from_bot(bot: type) -> requests.Session:
warnings.warn("This function is deprecated in favor of create_request_session"
" and will be removed in version 3.0.0.",
DeprecationWarning)
return create_request_session(bot)


def create_request_session(bot: type = None) -> requests.Session:
"""
Creates a requests.Session object preconfigured with the parameters
Expand Down

0 comments on commit 0287c77

Please sign in to comment.