File: backwardscompat.py

package info (click to toggle)
python-invoke 0.11.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,136 kB
  • ctags: 1,702
  • sloc: python: 5,614; makefile: 37; sh: 36
file content (8 lines) | stat: -rw-r--r-- 135 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
import sys

if sys.version_info >= (3,):
    def callable(obj):
        return hasattr(obj, '__call__')
else:
    callable = callable