Permalink
Browse files

doc-requirements: update sphinx to 1.8.1

This needed a local docstring for PtxExpect, as it would otherwise fail
to resolve references from pexpect's docstring in our sphinx context.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
  • Loading branch information...
jluebbe committed Sep 26, 2018
1 parent c38e4ca commit 5204c4a04ccf0fbd7a9b1b3f2aed18037c4a554a
Showing with 4 additions and 3 deletions.
  1. +2 −2 doc-requirements.txt
  2. +2 −1 labgrid/util/expect.py
@@ -1,3 +1,3 @@
Sphinx==1.6.7
sphinx_rtd_theme==0.2.4
Sphinx==1.8.1
sphinx_rtd_theme==0.4.1
docutils==0.14
@@ -9,6 +9,7 @@ class PtxExpect(pexpect.spawn):
"""

def __init__(self, driver, logfile=None, timeout=30, cwd=None):
"Initializes a pexpect spawn instanse with required configuration"
self.driver = driver
self.logfile = logfile
self.linesep = b"\n"
@@ -30,7 +31,7 @@ def send(self, s):
return self.driver.write(b)

def read_nonblocking(self, size=1, timeout=-1):
""" Pexpects needs a nonblocking read function, simply use pyserial with a timeout of 0"""
"Pexpects needs a nonblocking read function, simply use pyserial with a timeout of 0"
assert timeout is not None
if timeout == -1:
timeout = self.timeout

0 comments on commit 5204c4a

Please sign in to comment.