MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / apply

Method apply

service/jargon/jargon.py:35–43  ·  view source on GitHub ↗
(self, query_words)

Source from the content-addressed store, hash-verified

33 return self._rawdata
34
35 def apply(self, query_words):
36 parts = []
37 for word in query_words:
38 replacements = self.get(word)
39 if replacements:
40 parts.append('({})'.format('|'.join(replacements)))
41 else:
42 parts.append(word)
43 return parts

Callers 2

__init__Method · 0.80
processSearchesMethod · 0.80

Calls 2

getMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected