浏览代码

Fix pypy3 build failure

Ask Solem 8 年之前
父节点
当前提交
0f87321df3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(