Add docs about warnings member for python. (#1711)

This commit is contained in:
Wesley Shields
2022-05-19 23:05:01 +02:00
committed by GitHub
parent 3bb5355836
commit ee6b2363f7
+5
View File
@@ -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: