Skip to content

Commit b5d7537

Browse files
authored
Merge pull request labgrid-project#871 from initBasti/fix_typo_expect_py
util/expect: Improve __init__ method for wrapper
2 parents dc1edb0 + 755324c commit b5d7537

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)