• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
7from sys import version_info
8
9__all__ = ['callable']
10
11
12if (2, 7) < version_info[:2] < (3, 2):
13    import collections
14
15    def callable(x):
16        return isinstance(x, collections.Callable)
17
18else:
19
20    callable = callable
21