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

Method phase1

Lib/filecmp.py:148–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 self.right_list.sort()
147
148 def phase1(self): # Compute common names
149 a = dict(zip(map(os.path.normcase, self.left_list), self.left_list))
150 b = dict(zip(map(os.path.normcase, self.right_list), self.right_list))
151 self.common = list(map(a.__getitem__, filter(b.__contains__, a)))
152 self.left_only = list(map(a.__getitem__, filterfalse(b.__contains__, a)))
153 self.right_only = list(map(b.__getitem__, filterfalse(a.__contains__, b)))
154
155 def phase2(self): # Distinguish files, directories, funnies
156 self.common_dirs = []

Callers

nothing calls this directly

Calls 3

listClass · 0.85
filterfalseFunction · 0.85
filterFunction · 0.70

Tested by

no test coverage detected