您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
379 B

  1. #
  2. # This file is part of pyasn1 software.
  3. #
  4. # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
  5. # License: http://snmplabs.com/pyasn1/license.html
  6. #
  7. from sys import version_info
  8. __all__ = ['callable']
  9. if (2, 7) < version_info[:2] < (3, 2):
  10. import collections
  11. def callable(x):
  12. return isinstance(x, collections.Callable)
  13. else:
  14. callable = callable