Explorar el Código

Fix pypy3 build failure

Ask Solem hace 8 años
padre
commit
0f87321df3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/utils/functional.py

+ 1 - 1
celery/utils/functional.py

@@ -284,7 +284,7 @@ def fun_takes_argument(name, fun, position=None):
     )
 
 
-if IS_PY3:
+if hasattr(inspect, 'signature'):
     def fun_accepts_kwargs(fun):
         """Return true if function accepts arbitrary keyword arguments."""
         return any(