summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2020-05-02 11:02:31 -0400
committerPeter LaFosse <peter@vector35.com>2020-05-03 13:20:56 -0400
commite9fc49a59d26fe06cefa84321ff6c80c95c7809e (patch)
tree9b5c02e96ccc6488924d5113f3ec9d22dc151da3 /python/binaryview.py
parent8f1bc5944b849f3ad0cbbd5972d5ab9948ed4d57 (diff)
Use raw string to placate linter
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index fe94b0bf..42a09a91 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -5326,12 +5326,12 @@ class BinaryView(object):
raise AttributeError("attribute '%s' is read only" % name)
def parse_expression(self, expression, here=0):
- """
+ r"""
Evaluates a string expression to an integer value.
The parser uses the following rules:
- - Symbols are defined by the lexer as ``[A-Za-z0-9_:<>][A-Za-z0-9_:$\\-<>]+`` or anything enclosed in either single or double quotes
+ - Symbols are defined by the lexer as ``[A-Za-z0-9_:<>][A-Za-z0-9_:$\-<>]+`` or anything enclosed in either single or double quotes
- Symbols are everything in ``bv.symbols``, unnamed DataVariables (i.e. ``data_00005000``), unnamed functions (i.e. ``sub_00005000``), or section names (i.e. ``.text``)
- Numbers are defaulted to hexadecimal thus `_printf + 10` is equivalent to `printf + 0x10` If decimal numbers required use the decimal prefix.
- Since numbers and symbols can be ambiguous its recommended that you prefix your numbers with the following: