From 07d24ce9db65eff8a17c05034cbac165be2c037c Mon Sep 17 00:00:00 2001 From: Kevin Orr Date: Tue, 6 Apr 2021 14:38:22 -0400 Subject: Fix docstring confusing some syntax highlighters This is technically correct (and for illustration): ```py >>> "asdf""" 'asdf' >>> "asdf""qwer" 'asdfqwer' >>> def foo(): ... "asdf""" ... return 4 ... >>> foo() 4 >>> foo.__doc__ 'asdf' ``` But as it currently exists, it messes up some (admittedly, incorrect) lexers/syntax highlighters (e.g. emacs's python-mode). --- python/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/function.py b/python/function.py index 5dfa9528..0a61acc1 100644 --- a/python/function.py +++ b/python/function.py @@ -1436,7 +1436,7 @@ class Function(object): @property def highest_address(self): - "The highest virtual address contained in a function.""" + """The highest virtual address contained in a function.""" return max(self, key=lambda block:block.end).end - 1 @property -- cgit v1.3.1