Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pyasn1/compat/calling.py: 57%
7 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:25 +0000
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:25 +0000
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#
7from sys import version_info
9__all__ = ['callable']
12if (2, 7) < version_info[:2] < (3, 2):
13 import collections
15 def callable(x):
16 return isinstance(x, collections.Callable)
18else:
20 callable = callable