MCPcopy
hub / github.com/docopt/docopt / fix

Method fix

docopt.py:40–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 return hash(repr(self))
39
40 def fix(self):
41 self.fix_identities()
42 self.fix_repeating_arguments()
43 return self
44
45 def fix_identities(self, uniq=None):
46 """Make pattern-tree tips point to same object if they are equal."""

Callers 3

docoptFunction · 0.80
test_list_argument_matchFunction · 0.80

Calls 2

fix_identitiesMethod · 0.95

Tested by 2

test_list_argument_matchFunction · 0.64