diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-19 12:23:18 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-19 12:31:31 +0200 |
commit | edfb78ffbcdcca2bf0351ab77d56f0465c52fdbf (patch) | |
tree | de86d46ae4cceec2c22baa40c5d8f65318cb7add | |
parent | 312dde3946433e36dfe2f2c5ba1229374a302932 (diff) | |
download | pylint-git-edfb78ffbcdcca2bf0351ab77d56f0465c52fdbf.tar.gz |
Pass the line number for bad-inline-option instead of passing the actual line
Close #2904
-rw-r--r-- | pylint/checkers/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index 882d8ab2f..d4da9f33b 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -160,7 +160,7 @@ class EncodingChecker(BaseChecker): self.add_message( "bad-inline-option", args=disable_option_match.group(1).strip(), - line=comment.string, + line=comment.start[0], ) continue |