MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __parseRawName

Method __parseRawName

eos/saveddata/targetProfile.py:457–468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

455 return self.__parseRawName()[0]
456
457 def __parseRawName(self):
458 hierarchy = []
459 remainingName = self.rawName.strip() if self.rawName else ''
460 while True:
461 start, end = remainingName.find('['), remainingName.find(']')
462 if start == -1 or end == -1:
463 return hierarchy, remainingName
464 splitter = remainingName.find('|')
465 if splitter != -1 and splitter == start - 1:
466 return hierarchy, remainingName[1:]
467 hierarchy.append(remainingName[start + 1:end])
468 remainingName = remainingName[end + 1:].strip()
469
470 def __deepcopy__(self, memo):
471 p = TargetProfile(

Callers 3

fullNameMethod · 0.95
shortNameMethod · 0.95
hierarchyMethod · 0.95

Calls 2

findMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected