summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-06-17 19:57:05 +0200
committerTorsten Marek <tmarek@google.com>2013-06-17 19:57:05 +0200
commitad7b0027ce59c7091a3dc0c45c184c265e825521 (patch)
tree329254262587f366a75ccc7e4bad825a45bf96ec /lint.py
parentba4599a918a35414061021a46dc0eb0e0dd59cc7 (diff)
downloadpylint-ad7b0027ce59c7091a3dc0c45c184c265e825521.tar.gz
Extend the line length check.
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lint.py b/lint.py
index 0c52890..c8101c6 100644
--- a/lint.py
+++ b/lint.py
@@ -31,7 +31,6 @@ from pylint.checkers import utils
import sys
import os
-import re
import tokenize
from warnings import warn
@@ -48,7 +47,7 @@ from astroid.__pkginfo__ import version as astroid_version
from pylint.utils import (PyLintASTWalker, UnknownMessage, MessagesHandlerMixIn,
ReportsHandlerMixIn, MSG_TYPES, expand_modules,
- WarningScope, tokenize_module)
+ WarningScope, tokenize_module, OPTION_RGX)
from pylint.interfaces import ILinter, IRawChecker, ITokenChecker, IAstroidChecker
from pylint.checkers import (BaseTokenChecker, EmptyReport,
table_lines_from_stats)
@@ -60,7 +59,6 @@ from pylint import config
from pylint.__pkginfo__ import version
-OPTION_RGX = re.compile(r'\s*#.*\bpylint:(.*)')
REPORTER_OPT_MAP = {'text': TextReporter,
'parseable': ParseableTextReporter,
'msvs': VSTextReporter,