MCPcopy Index your code
hub / github.com/python/cpython / S_ISCHR

Function S_ISCHR

Lib/stat.py:54–56  ·  view source on GitHub ↗

Return True if mode is from a character special device file.

(mode)

Source from the content-addressed store, hash-verified

52 return S_IFMT(mode) == S_IFDIR
53
54def S_ISCHR(mode):
55 """Return True if mode is from a character special device file."""
56 return S_IFMT(mode) == S_IFCHR
57
58def S_ISBLK(mode):
59 """Return True if mode is from a block special device file."""

Callers 1

is_char_deviceMethod · 0.90

Calls 1

S_IFMTFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…