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

Method isreg

Lib/tarfile.py:1677–1679  ·  view source on GitHub ↗

Return True if the Tarinfo object is a regular file.

(self)

Source from the content-addressed store, hash-verified

1675 return blocks * BLOCKSIZE
1676
1677 def isreg(self):
1678 'Return True if the Tarinfo object is a regular file.'
1679 return self.type in REGULAR_TYPES
1680
1681 def isfile(self):
1682 'Return True if the Tarinfo object is a regular file.'

Callers 10

_proc_builtinMethod · 0.95
isfileMethod · 0.95
_get_filtered_attrsFunction · 0.80
_proc_paxMethod · 0.80
addMethod · 0.80
addfileMethod · 0.80
extractfileMethod · 0.80
_extract_memberMethod · 0.80
test_read_throughMethod · 0.80
addMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_read_throughMethod · 0.64
addMethod · 0.64