diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-10-14 15:41:51 +0200 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-10-14 15:41:51 +0200 |
commit | f0978716a04628543161bd77f6e3ca3af3130f2f (patch) | |
tree | dca4d0151fe320156f4db0c0bf2dd7c5fa70bb6a /robot/problems/introduction/wall1m | |
parent | 3bcdcda1631abe6fed0eb0fa0ea608a7170274bd (diff) |
fixed: TabError: inconsistent use of tabs and spaces in indentation
Diffstat (limited to 'robot/problems/introduction/wall1m')
-rw-r--r-- | robot/problems/introduction/wall1m/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robot/problems/introduction/wall1m/common.py b/robot/problems/introduction/wall1m/common.py index 319cea2..2a93573 100644 --- a/robot/problems/introduction/wall1m/common.py +++ b/robot/problems/introduction/wall1m/common.py @@ -41,7 +41,7 @@ hint_type = { def hint( code ): tokens = get_tokens(code) - lines = code.split('\n') + lines = code.split('\n') # if code does not include mindstorms_widgets(), a student gets a hint that the robot should be somehow represented in the program if not has_token_sequence(tokens, ['mindstorms_widgets', '(',')']): @@ -65,7 +65,7 @@ def hint( code ): return [{'id': 'moveSteeringOff'}] #if not (has_token_sequence(tokens, ['ultrasonic_sensor_measure', '(']) and 'distance-cm' in code): - if not any(('ultrasonic_sensor_measure' in s and '(' in s and 'distance-cm' in s) for s in lines) + if not any(('ultrasonic_sensor_measure' in s and '(' in s and 'distance-cm' in s) for s in lines): return [{'id': 'ultrasonicSensorMeasure'}] if not any(('power' in s and '80' in s and '=' in s) for s in lines): |