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

Function isValidFighterImport

service/port/eft.py:1014–1025  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1012
1013
1014def isValidFighterImport(text):
1015 pattern = r'x\d+$'
1016 for line in lineIter(text):
1017 if not re.search(pattern, line):
1018 return False, ()
1019 itemData = parseAdditions(text)
1020 if not itemData:
1021 return False, ()
1022 for item, amount, mutation in itemData:
1023 if not item.isFighter:
1024 return False, ()
1025 return True, itemData
1026
1027
1028def isValidCargoImport(text):

Callers 1

importAutoMethod · 0.90

Calls 2

lineIterFunction · 0.85
parseAdditionsFunction · 0.85

Tested by

no test coverage detected