From f0978716a04628543161bd77f6e3ca3af3130f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=BDabkar?= Date: Wed, 14 Oct 2015 15:41:51 +0200 Subject: fixed: TabError: inconsistent use of tabs and spaces in indentation --- robot/problems/introduction/wall1m/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'robot/problems/introduction') 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): -- cgit v1.2.1