def addToken(self, token): assert token.__class__.__name__ == 'TimeToken' Place.addToken(self, token) if self.withoutTime: token.placeClocks = {} token.pclock = 0.0 token.addPlaceClock(self, token.placeClocks.get(self)) token.pclock = token.placeClocks[self]