MCPcopy
hub / github.com/cool-RR/PySnooper / is_char_device

Method is_char_device

tests/mini_toolbox/pathlib.py:1611–1622  ·  view source on GitHub ↗

Whether this path is a character device.

(self)

Source from the content-addressed store, hash-verified

1609 return False
1610
1611 def is_char_device(self):
1612 """
1613 Whether this path is a character device.
1614 """
1615 try:
1616 return S_ISCHR(self.stat().st_mode)
1617 except OSError as e:
1618 if e.errno not in (ENOENT, ENOTDIR):
1619 raise
1620 # Path doesn't exist or is a broken symlink
1621 # (see https://bitbucket.org/pitrou/pathlib/issue/12/)
1622 return False
1623
1624 def is_fifo(self):
1625 """

Callers

nothing calls this directly

Calls 1

statMethod · 0.95

Tested by

no test coverage detected