summaryrefslogtreecommitdiff
path: root/pylint/checkers/stdlib.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-07-09 13:51:51 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2016-07-09 13:52:59 +0100
commit7a9cb0cdcc8be45039cb46721baaae8f735b2771 (patch)
tree6111f664644a224dd354aa2c2aed7c6c0f572b9a /pylint/checkers/stdlib.py
parenta8dc1ca8f34ed5e9c50b8b0f61fd92c6fd1658f0 (diff)
downloadpylint-git-7a9cb0cdcc8be45039cb46721baaae8f735b2771.tar.gz
More granular versions for deprecated modules.
Close #991
Diffstat (limited to 'pylint/checkers/stdlib.py')
-rw-r--r--pylint/checkers/stdlib.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py
index b01139ccf..9510c33d4 100644
--- a/pylint/checkers/stdlib.py
+++ b/pylint/checkers/stdlib.py
@@ -105,14 +105,14 @@ class StdlibChecker(BaseChecker):
'tkinter.Menu.tk_bindForTraversal',
],
2: {
- (2, 6): [
+ (2, 6, 0): [
'commands.getstatus',
'os.popen2',
'os.popen3',
'os.popen4',
'macostools.touched',
],
- (2, 7): [
+ (2, 7, 0): [
'unittest.case.TestCase.assertEquals',
'unittest.case.TestCase.assertNotEquals',
'unittest.case.TestCase.assertAlmostEquals',
@@ -125,15 +125,15 @@ class StdlibChecker(BaseChecker):
],
},
3: {
- (3, 0): [
+ (3, 0, 0): [
'inspect.getargspec',
'unittest.case.TestCase._deprecate.deprecated_func',
],
- (3, 1): [
+ (3, 1, 0): [
'base64.encodestring', 'base64.decodestring',
'ntpath.splitunc',
],
- (3, 2): [
+ (3, 2, 0): [
'cgi.escape',
'configparser.RawConfigParser.readfp',
'xml.etree.ElementTree.Element.getchildren',
@@ -141,21 +141,23 @@ class StdlibChecker(BaseChecker):
'xml.etree.ElementTree.XMLParser.getiterator',
'xml.etree.ElementTree.XMLParser.doctype',
],
- (3, 3): [
- 'inspect.getmoduleinfo', 'inspect.getmodulename',
+ (3, 3, 0): [
+ 'inspect.getmoduleinfo',
'logging.warn', 'logging.Logger.warn',
'logging.LoggerAdapter.warn',
'nntplib._NNTPBase.xpath',
'platform.popen',
],
- (3, 4): [
- 'asyncio.tasks.async',
+ (3, 4, 0): [
'importlib.find_loader',
'plistlib.readPlist', 'plistlib.writePlist',
'plistlib.readPlistFromBytes',
'plistlib.writePlistToBytes',
],
- (3, 5): [
+ (3, 4, 4): [
+ 'asyncio.tasks.async',
+ ],
+ (3, 5, 0): [
'fractions.gcd',
'inspect.getfullargspec', 'inspect.getargvalues',
'inspect.formatargspec', 'inspect.formatargvalues',