summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index e036cb8..f6bbdb0 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -4,6 +4,7 @@ import os as _os
import sys as _sys
import _thread
import functools
+import warnings
from time import monotonic as _time
from _weakrefset import WeakSet
@@ -116,6 +117,12 @@ def RLock(*args, **kwargs):
acquired it.
"""
+ if args or kwargs:
+ warnings.warn(
+ 'Passing arguments to RLock is deprecated and will be removed in 3.15',
+ DeprecationWarning,
+ stacklevel=2,
+ )
if _CRLock is None:
return _PyRLock(*args, **kwargs)
return _CRLock(*args, **kwargs)