fix: Do not throw a warning every time one import pymisp...

pull/1147/head
Raphaël Vinot 2024-02-06 16:40:49 +01:00
parent 1e4c9615fb
commit c9d6d04702
2 changed files with 5 additions and 2 deletions

View File

@ -63,7 +63,10 @@ except ImportError as e:
class ExpandedPyMISP(PyMISP): class ExpandedPyMISP(PyMISP):
warnings.warn('This class is deprecated, use PyMISP instead', FutureWarning)
def __init__(self, *args, **kwargs):
warnings.warn('This class is deprecated, use PyMISP instead', FutureWarning)
super().__init__(*args, **kwargs)
__all__ = ['PyMISP', 'register_user', 'AbstractMISP', 'MISPTag', __all__ = ['PyMISP', 'register_user', 'AbstractMISP', 'MISPTag',

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "pymisp" name = "pymisp"
version = "2.4.184.1" version = "2.4.184.2"
description = "Python API for MISP." description = "Python API for MISP."
authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"] authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
license = "BSD-2-Clause" license = "BSD-2-Clause"