From e9fc49a59d26fe06cefa84321ff6c80c95c7809e Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sat, 2 May 2020 11:02:31 -0400 Subject: Use raw string to placate linter --- python/binaryview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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: -- cgit v1.3.1