瀏覽代碼

fun_of_method moved to __compat__

Ask Solem 13 年之前
父節點
當前提交
22f05de36f
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      celery/utils/compat.py

+ 0 - 10
celery/utils/compat.py

@@ -47,16 +47,6 @@ else:
     BytesIO = WhateverIO = StringIO     # noqa
 
 
-# im_func is no longer available in Py3.
-# instead the unbound method itself can be used.
-if is_py3k:
-    def fun_of_method(method):
-        return method
-else:
-    def fun_of_method(method):  # noqa
-        return method.im_func
-
-
 ############## collections.OrderedDict ######################################
 try:
     from collections import OrderedDict