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

Method __makeRevDict

service/market.py:480–487  ·  view source on GitHub ↗

Creates reverse dictionary

(orig)

Source from the content-addressed store, hash-verified

478
479 @staticmethod
480 def __makeRevDict(orig):
481 """Creates reverse dictionary"""
482 rev = {}
483 for item, value in list(orig.items()):
484 if value not in rev:
485 rev[value] = set()
486 rev[value].add(item)
487 return rev
488
489 def __makeReverseMetaMapIndices(self):
490 revmap = {}

Callers 1

__init__Method · 0.95

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected