MCPcopy Create free account
hub / github.com/ceph/ceph / intify

Function intify

qa/tasks/ceph_fuse.py:192–197  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

190
191 def parse_client_feature_range(client_feature_range):
192 def intify(val):
193 try:
194 return int(val)
195 except ValueError:
196 log.warn(f'failed to decode feature bit {val}')
197 raise
198 feature_bits = []
199 pvalue = re.compile(r'(\d+)')
200 prange = re.compile(r'\[(\d+)\-(\d+)\]')

Callers 1

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected