summaryrefslogtreecommitdiff
path: root/astroid/brain/brain_threading.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-09-29 11:37:44 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-09-29 11:38:24 +0200
commit5a85ae63fdfc9ab578c856728105a6822d1786fe (patch)
tree9a8a73d73a20cd18606ca6e7f61345caf7180be4 /astroid/brain/brain_threading.py
parentb054781a7d27bb96e9c620769b5af1e9c58eaaa9 (diff)
downloadastroid-git-5a85ae63fdfc9ab578c856728105a6822d1786fe.tar.gz
``threading.Lock.acquire`` has the ``timeout`` parameter now.
Close PyCQA/pylint#2457
Diffstat (limited to 'astroid/brain/brain_threading.py')
-rw-r--r--astroid/brain/brain_threading.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/astroid/brain/brain_threading.py b/astroid/brain/brain_threading.py
index 7c609759..2313fbe4 100644
--- a/astroid/brain/brain_threading.py
+++ b/astroid/brain/brain_threading.py
@@ -4,14 +4,13 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
-
import astroid
def _thread_transform():
return astroid.parse('''
class lock(object):
- def acquire(self, blocking=True):
+ def acquire(self, blocking=True, timeout=-1):
pass
def release(self):
pass