diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2019-06-28 22:30:36 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-08-06 16:39:31 +0200 |
commit | c1fe6e175f80df385129aa77ad363009b22f8089 (patch) | |
tree | d57c8daeac44583833a76f6da8ab38fb880cff4e /pylint/utils/utils.py | |
parent | e8bed2fc04ac53a201b6bc9d78e197abc937beca (diff) | |
download | pylint-git-c1fe6e175f80df385129aa77ad363009b22f8089.tar.gz |
[pylint.utils] pylint.utils.category_id used only once
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 81cbc3448..1faba9ae8 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -15,7 +15,7 @@ from os.path import basename, dirname, exists, isdir, join, normpath, splitext from astroid import Module, modutils -from pylint.constants import MSG_TYPES, MSG_TYPES_LONG, PY_EXTS +from pylint.constants import PY_EXTS def normalize_text(text, line_len=80, indent=""): @@ -44,13 +44,6 @@ def get_module_and_frameid(node): return module, ".".join(obj) -def category_id(cid): - cid = cid.upper() - if cid in MSG_TYPES: - return cid - return MSG_TYPES_LONG.get(cid) - - def get_rst_title(title, character): """Permit to get a title formatted as ReStructuredText test (underlined with a chosen character).""" return "%s\n%s\n" % (title, character * len(title)) |