summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-07-13 10:59:15 -0600
committerClaudiu Popa <pcmanticore@gmail.com>2018-07-15 09:26:22 +0200
commit5b316f936edc2e60a85bec82a2d3a3abab4c14b0 (patch)
tree19d39b0f17f2c4bc14063284089fe175fab335f6
parente76e9f77f2762e344e8aeb2419ee91b884c99c52 (diff)
downloadpylint-git-5b316f936edc2e60a85bec82a2d3a3abab4c14b0.tar.gz
Rename pos to position to keep naming consistent
-rw-r--r--pylint/checkers/format.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index 6e644dc7e..c09b36a99 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -422,16 +422,16 @@ class ContinuedLineState:
_Indentations(indentation, indentation + self._continuation_string),
_Indentations(indentation + self._continuation_string))
- def _continuation_inside_bracket(self, bracket, pos):
+ def _continuation_inside_bracket(self, bracket, position):
"""Extracts indentation information for a continued indent."""
- indentation = self._tokens.line_indent(pos)
- token_indent = self._tokens.token_indent(pos)
- next_token_indent = self._tokens.token_indent(pos + 1)
+ indentation = self._tokens.line_indent(position)
+ token_indent = self._tokens.token_indent(position)
+ next_token_indent = self._tokens.token_indent(position + 1)
if self._is_block_opener and next_token_indent == indentation + self._block_indent_string:
return _ContinuedIndent(
CONTINUED_BLOCK,
bracket,
- pos,
+ position,
_Indentations(token_indent),
_BeforeBlockIndentations(
next_token_indent,
@@ -439,7 +439,7 @@ class ContinuedLineState:
return _ContinuedIndent(
CONTINUED,
bracket,
- pos,
+ position,
_Indentations(token_indent, next_token_indent),
_Indentations(next_token_indent))