summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatus Valo <matusvalo@gmail.com>2021-06-27 07:25:20 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-29 20:45:42 +0200
commitdc5aba572b0745be12886276b97568b58a65778c (patch)
treec9ef7b92dd4db7ff9c6b94acad09df4e8b08e0fd
parentdec8cefaf3d5fa8ccac8a7623b9586ef7b73cea4 (diff)
downloadpylint-git-dc5aba572b0745be12886276b97568b58a65778c.tar.gz
Added various deprecated functions/methods for python 3.10, 3.7, 3.6 and 3.3
-rw-r--r--pylint/checkers/stdlib.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/pylint/checkers/stdlib.py b/pylint/checkers/stdlib.py
index d450dbc70..13a22d1db 100644
--- a/pylint/checkers/stdlib.py
+++ b/pylint/checkers/stdlib.py
@@ -183,6 +183,7 @@ DEPRECATED_METHODS = {
"logging.LoggerAdapter.warn",
"nntplib._NNTPBase.xpath",
"platform.popen",
+ "sqlite3.OptimizedUnicode",
},
(3, 4, 0): {
"importlib.find_loader",
@@ -199,15 +200,22 @@ DEPRECATED_METHODS = {
"platform.linux_distribution",
"platform.dist",
},
- (3, 6, 0): {"importlib._bootstrap_external.FileLoader.load_module"},
+ (3, 6, 0): {
+ "importlib._bootstrap_external.FileLoader.load_module",
+ "ssl.RAND_pseudo_bytes",
+ "ssl.SSLSocket.read",
+ "SSLSocket.write",
+ },
(3, 7, 0): {
"sys.set_coroutine_wrapper",
"sys.get_coroutine_wrapper",
"aifc.openfp",
+ "threading.Thread.isAlive",
"asyncio.Task.current_task",
"asyncio.Task.all_task",
"locale.format",
"ssl.wrap_socket",
+ "ssl.match_hostname",
"sunau.openfp",
"wave.openfp",
},
@@ -230,6 +238,21 @@ DEPRECATED_METHODS = {
(3, 10, 0): {
"_sqlite3.enable_shared_cache",
"pathlib.Path.link_to",
+ "zipimport.zipimporter.load_module",
+ "zipimport.zipimporter.find_module",
+ "zipimport.zipimporter.find_loader",
+ "sqlite3.enable_shared_cache",
+ "pathlib.Path.link_to",
+ "threading.currentThread",
+ "threading.activeCount",
+ "threading.Condition.notifyAll",
+ "threading.Event.isSet",
+ "threading.Thread.setName",
+ "threading.Thread.getName",
+ "threading.Thread.isDaemon",
+ "threading.Thread.setDaemon",
+ "cgi.log",
+ "SSLSocket.selected_npn_protocol",
},
},
}