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

Method __parseRawName

eos/saveddata/damagePattern.py:359–370  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

357 return self.__parseRawName()[0]
358
359 def __parseRawName(self):
360 categories = []
361 remainingName = self.rawName.strip() if self.rawName else ''
362 while True:
363 start, end = remainingName.find('['), remainingName.find(']')
364 if start == -1 or end == -1:
365 return categories, remainingName
366 splitter = remainingName.find('|')
367 if splitter != -1 and splitter == start - 1:
368 return categories, remainingName[1:]
369 categories.append(remainingName[start + 1:end])
370 remainingName = remainingName[end + 1:].strip()
371
372 def __deepcopy__(self, memo):
373 p = DamagePattern(self.emAmount, self.thermalAmount, self.kineticAmount, self.explosiveAmount)

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