mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Add docs about warnings member for python. (#1711)
This commit is contained in:
@@ -159,6 +159,11 @@ The saved rules can be loaded from the memory buffer:
|
||||
|
||||
The result of ``load`` is also an instance of the class :py:class:`yara.Rules`.
|
||||
|
||||
Starting with YARA 4.3.0, ``Rules`` have a warning member which contains a list
|
||||
of warnings generated by the compiler. This allows you to know if the compiler
|
||||
generated warnings without them being hard errors using the `error_on_warning`
|
||||
argument.
|
||||
|
||||
Instances of ``Rules`` also have a ``match`` method, which allows you to apply
|
||||
the rules to a file:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user