MCPcopy Index your code
hub / github.com/dashingsoft/pyarmor-webui / do_remove

Method do_remove

handler8.py:529–540  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

527 return p
528
529 def do_remove(self, args):
530 c, p = self._get_license(args)
531
532 path = self._get_path()
533 rcode = p['rcode']
534 licpath = os.path.join(path, rcode)
535 if os.path.exists(licpath):
536 shutil.rmtree(licpath)
537
538 c['licenses'].remove(p)
539 self._set_config(c)
540 return p
541
542 def do_list(self, args=None):
543 c = self._get_config()

Callers

nothing calls this directly

Calls 3

_get_licenseMethod · 0.95
_get_pathMethod · 0.80
_set_configMethod · 0.80

Tested by

no test coverage detected