diff options
| author | Kevin Orr <kevinorr54@gmail.com> | 2021-04-06 14:38:22 -0400 |
|---|---|---|
| committer | Jordan <github@psifertex.com> | 2021-04-06 14:55:05 -0400 |
| commit | 07d24ce9db65eff8a17c05034cbac165be2c037c (patch) | |
| tree | 9644e95d9e9b28b99d87926bec46a3de0cc68e3c /python/function.py | |
| parent | ccc46ee23e8160231b1de739380bd7d808ec433d (diff) | |
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).
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
