[Python-modules-commits] [python-click-threading] 01/05: Import python-click-threading_0.4.4.orig.tar.gz

Filip Pytloun fpytloun-guest at moszumanska.debian.org
Mon Dec 11 16:36:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

fpytloun-guest pushed a commit to branch master
in repository python-click-threading.

commit 2ed2031524cd760cea765e08045ad04aa2bea199
Author: Filip Pytloun <filip at pytloun.cz>
Date:   Mon Dec 11 17:33:41 2017 +0100

    Import python-click-threading_0.4.4.orig.tar.gz
---
 click_threading/__init__.py | 2 +-
 click_threading/_compat.py  | 3 +++
 click_threading/monkey.py   | 4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/click_threading/__init__.py b/click_threading/__init__.py
index 3d022d0..8a2bdfd 100644
--- a/click_threading/__init__.py
+++ b/click_threading/__init__.py
@@ -21,7 +21,7 @@ try:
 except ImportError:
     from futures import Future as _Future
 
-__version__ = '0.4.3'
+__version__ = '0.4.4'
 
 _CTX_WORKER_KEY = __name__ + '.uiworker'
 
diff --git a/click_threading/_compat.py b/click_threading/_compat.py
index 9f1e82d..466ee8a 100644
--- a/click_threading/_compat.py
+++ b/click_threading/_compat.py
@@ -1,12 +1,15 @@
 # -*- coding: utf-8 -*-
 
+import inspect
 import sys
 
 PY2 = sys.version_info[0] == 2
 
 if PY2:
+    getargspec = inspect.getargspec
     exec('def reraise(tp, value, tb=None):\n raise tp, value, tb')
 else:
+    getargspec = inspect.getfullargspec
     def reraise(tp, value, tb=None):
         if value.__traceback__ is not tb:
             raise value.with_traceback(tb)
diff --git a/click_threading/monkey.py b/click_threading/monkey.py
index 4eb2662..1c16cd6 100644
--- a/click_threading/monkey.py
+++ b/click_threading/monkey.py
@@ -4,7 +4,7 @@ import types
 import contextlib
 import inspect
 
-from ._compat import PY2
+from ._compat import PY2, getargspec
 
 
 class FunctionInfo(object):
@@ -40,7 +40,7 @@ def patch_ui_functions(wrapper):
 
         new_f = wrapper(_copy_fn(f), info)
 
-        argspec = inspect.getargspec(f)
+        argspec = getargspec(f)
         signature = inspect.formatargspec(*argspec) \
             .lstrip('(') \
             .rstrip(')')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-click-threading.git



More information about the Python-modules-commits mailing list