File: safethread.py

package info (click to toggle)
python-numarray 1.1.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,428 kB
  • ctags: 8,469
  • sloc: ansic: 92,018; python: 20,861; makefile: 263; sh: 13
file content (8 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
try:
    from thread import get_ident
except ImportError:
    def get_ident():
        """Stub get_ident() function returning a fake thread id
        for non-threaded environments.
        """
        return 0