Tweak code to eliminate pylint warning

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
David A. Wheeler 2017-08-12 20:34:04 -04:00
parent eb3631d839
commit 6bb9c5d3c7
1 changed files with 1 additions and 2 deletions

View File

@ -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):