Prechádzať zdrojové kódy

starpupy: use inspect.getfullargspec() instead of inspect.getargspec()for python3

HE Kun 4 rokov pred
rodič
commit
913ef45a09
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      starpupy/src/joblib.py

+ 1 - 1
starpupy/src/joblib.py

@@ -94,7 +94,7 @@ def future_generator(iterable, n_jobs, dict_task):
 		# the function is always the first element
 		f=iterable[0]
 		# get the name of formal arguments of f
-		formal_args=inspect.getargspec(f).args
+		formal_args=inspect.getfullargspec(f).args
 		# get the arguments list
 		args=[]
 		# argument is arbitrary in iterable[1]