File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ def loop( # pylint: disable=too-many-return-statements
141
141
if line is None :
142
142
try :
143
143
line = self .lines [0 ]
144
+ line = line .strip () # Fix
144
145
except IndexError :
145
146
print ("Done!" )
146
147
return False
@@ -185,10 +186,10 @@ def loop( # pylint: disable=too-many-return-statements
185
186
186
187
self .write_key (start )
187
188
if len (words ) == 1 :
189
+ self .keyboard .release_all ()
188
190
time .sleep (self .default_delay )
189
191
self .last = self .lines [0 ]
190
192
self .lines .pop (0 )
191
- self .keyboard .release_all ()
192
193
return True
193
194
if len (words [1 ]):
194
195
self .loop (line = words [1 ])
@@ -198,8 +199,8 @@ def loop( # pylint: disable=too-many-return-statements
198
199
199
200
self .keyboard .release_all ()
200
201
time .sleep (self .default_delay )
201
- self .last = self .lines [0 ]
202
- self .lines .pop (0 )
202
+ # self.last = self.lines[0]
203
+ # self.lines.pop(0)
203
204
return True
204
205
205
206
def write_key (self , start : str ) -> None :
You can’t perform that action at this time.
0 commit comments