Minor style changes in the documentation.
@@ -811,7 +811,7 @@ Reference
value (0 or 1) if the given *toolid* and optional *version* is present
in an entry.
- *Example: pe.rich_signature.toolid(170, 40219) >= 99 and pe.rich_signature.toolid(170, 40219) <= 143*
+ *Example: pe.rich_signature.toolid(170, 40219) >= 99*
.. c:function:: exports(function_name)
@@ -860,14 +860,17 @@ Reference
.. c:function:: imports(dll_name)
.. versionadded:: 3.5.0
+ .. versionchanged:: 3.12.0
Function returning the number of functions from the *dll_name*, in the PE
imports. *dll_name* is case insensitive.
- Note: Prior to version 3.12.0, this function returns only a boolean value
- (0 or 1) if the given DLL name is found in the PE imports.
+ Note: Prior to version 3.12.0, this function returned only a boolean value
+ indicating if the given DLL name was found in the PE imports. This change
+ is backward compatible, as any number larger than 0 also evaluates as
+ true.
- *Example: pe.imports("kernel32.dll") == 10*
+ *Examples: pe.imports("kernel32.dll"), pe.imports("kernel32.dll") == 10*
.. c:function:: imports(dll_name, ordinal)
@@ -881,6 +884,7 @@ Reference
.. c:function:: imports(dll_regexp, function_regexp)
.. versionadded:: 3.8.0
+ .. versionchanged:: 3.12.0
Function returning the number of functions from the PE imports where a
function name matches *function_regexp* and a DLL name matches
@@ -888,8 +892,9 @@ Reference
unless you use the "/i" modifier in the regexp, as shown in the example
below.
- Note: Prior to version 3.12.0, this function returns only a boolean value
- (0 or 1) if the given regexp matches any library and function.
+ Note: Prior to version 3.12.0, this function returned only a boolean value
+ indicating if matching import was found or not. This change is backward
+ compatible, as any number larger than 0 also evaluates as true.
*Example: pe.imports(/kernel32\.dll/i, /(Read|Write)ProcessMemory/) == 2*
