Преглед на файлове

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

HE Kun преди 4 години
родител
ревизия
913ef45a09
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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]