Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

calling.py 379B

1234567891011121314151617181920
  1. #
  2. # This file is part of pyasn1 software.
  3. #
  4. # Copyright (c) 2005-2018, 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