Skip to content
This repository was archived by the owner on Apr 25, 2021. It is now read-only.

Commit dfc5dd5

Browse files
committedNov 3, 2018
cleanup OpenPython OS
1 parent 69912e4 commit dfc5dd5

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import machine
2-
31
import event
42

5-
6-
73
event.setup()

‎src/main/resources/assets/openpython/opos/boot/04_builtin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def input(prompt=None):
4343
elif ch == '\b':
4444
if buf:
4545
buf.pop()
46-
write(ch + "---")
46+
write(ch)
4747
continue
4848
else:
4949
write(ch)

‎src/main/resources/assets/openpython/opos/lib/openos/event.py

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def on_error(e):
244244

245245
def setup():
246246
global keyboard
247+
247248
def pull_signal(seconds):
248249
ticks = sys.maxsize if seconds == INF else int(seconds * 20)
249250
return signal_handler(ticks)

‎src/main/resources/assets/openpython/opos/lib/openos/robot.py

-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ def down(self, *args):
8181
return self.func(DOWN, *args)
8282

8383

84-
85-
8684
class RobotResult:
8785
def __init__(self, result):
8886
self.result = result

0 commit comments

Comments
 (0)
Failed to load comments.