Skip to content

Commit 755324c

Browse files
committed
util/expect: Improve __init__ method for wrapper
Fix a typo, improve the sentence and remove unneeded newlines. The newlines seem to be left over from a previous state. Fixes: 5204c4a update sphinx to 1.8.1 Fixes: 56d5947 configure and run yapf Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
1 parent dc1edb0 commit 755324c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

labgrid/util/expect.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ class PtxExpect(pexpect.spawn):
99
"""
1010

1111
def __init__(self, driver):
12-
"Initializes a pexpect spawn instanse with required configuration"
12+
"Initializes a pexpect spawn instance with the required configuration"
1313
self.driver = driver
1414
self.linesep = b"\n"
15-
pexpect.spawn.__init__(
16-
self,
17-
None,
18-
maxread=1,
19-
)
15+
pexpect.spawn.__init__(self, None, maxread=1)
2016

2117
def send(self, s):
2218
"Write to underlying transport, return number of bytes written"

0 commit comments

Comments
 (0)