Import python-click-threading_0.4.4.orig.tar.gz

This commit is contained in:
Filip Pytloun 2017-12-11 17:33:41 +01:00
parent 09288b0632
commit 2ed2031524
3 changed files with 6 additions and 3 deletions

View file

@ -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'

View file

@ -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)

View file

@ -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(')')