Tweak code to eliminate pylint warning
Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
parent
eb3631d839
commit
6bb9c5d3c7
|
@ -1339,8 +1339,7 @@ def find_column(text, position):
|
|||
newline = string.rfind(text, "\n", 0, position)
|
||||
if newline == -1:
|
||||
return position + 1
|
||||
else:
|
||||
return position - newline
|
||||
return position - newline
|
||||
|
||||
|
||||
def get_context(text, position):
|
||||
|
|
Loading…
Reference in New Issue