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

Method importPatterns

service/targetProfile.py:74–81  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

72 db.save(p)
73
74 def importPatterns(self, text):
75 imports, num = es_TargetProfile.importPatterns(text)
76 lenImports = len(imports)
77
78 if lenImports == 0:
79 raise ImportError("No patterns found for import")
80 if lenImports != num:
81 raise ImportError("%d patterns imported from clipboard; %d had errors" % (num, num - lenImports))
82
83 def exportPatterns(self):
84 patterns = self.getUserTargetProfileList()

Callers

nothing calls this directly

Calls 1

ImportErrorClass · 0.70

Tested by

no test coverage detected