Files
openide/python/testData/intentions/joinIfMultiStatements.py
Mikhail Golubev baa3dfe8e6 Rename test data files for intentions to be consistent with other PyCharm tests
Initial text is in "<testName>.py" and expected result is in "<testName>_after.py".
Previously they were called "before<testName>.py" and "after<testName>.py" which
was very inconvenient, because these files were too far away from each other and
expected data came first.
2015-12-04 16:03:32 +03:00

16 lines
436 B
Python

class A:
def __init__(self, *args, **kwargs):
self.uses_remaining_this_turn = None
self.effects = None
def foo(self):
if self.can_act<caret>ivate():
if self.effect_queue is None:
self.effect_queue = list(self.effects)
for effect in self.effect_queue:
effect.activate(source, targets)
self.effect_queue = None
self.uses_remaining_this_turn -= 1
def can_activate(self):
pass