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

Method valid

src/pybind/ceph_argparse.py:342–347  ·  view source on GitHub ↗
(self, s: str, partial: bool = False)

Source from the content-addressed store, hash-verified

340 )
341
342 def valid(self, s: str, partial: bool = False) -> None:
343 sset = set(s)
344 if self.goodset and not sset <= self.goodset:
345 raise ArgumentFormat("invalid chars {0} in {1}".
346 format(''.join(sset - self.goodset), s))
347 self.val = s
348
349 def __str__(self) -> str:
350 b = ''

Callers

nothing calls this directly

Calls 4

ArgumentFormatClass · 0.85
setFunction · 0.50
formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected