sc2simulator/scenarioMgr/bank.py
def addScenario(self, scenario):
        """ensure the provided scenario is identified in this bank"""
        if scenario.name in self.scenarios:
            raise KeyError("cannot add '%s' because %s is already defined"%(
                scenario.name, scenario))
        self.scenarios[scenario.name] = scenario
ensure the provided scenario is identified in this bank
ensure the provided scenario is identified in this bank
ensure the provided scenario is identified in this bank
def addScenario(self, scenario):
        if scenario.name in self.scenarios:
            raise KeyError("cannot add '%s' because %s is already defined"%(
                scenario.name, scenario))
        self.scenarios[scenario.name] = scenario
def addScenario ( self , scenario ) : if scenario . name in self . scenarios : raise KeyError ( "cannot add '%s' because %s is already defined" % ( scenario . name , scenario ) ) self . scenarios [ scenario . name ] = scenario
ensure the provided scenario is identified in this bank
ensure the provided scenario is identified in this bank
"""ensure the provided scenario is identified in this bank"""
self
scenario