From: Erich W. <ew....@na...> - 2020-08-29 15:19:16
|
Hello Tristan, Tristan Williams writes: > A one line patch for amforth-shell.py to correct a python2/python3 > syntax error. It occurs when using the --no-error-on-output > option. Below is a unified diff against r2450/trunk/tools/amforth-shell.py > > --- amforth-shell.py > +++ new-shell.py > @@ -857,7 +857,7 @@ > self.progress_callback("Sent", lineno, full_line) > if response[-3:] == " ok": > if len(response) > 3: > - for l in StringIO.StringIO(response[:-3]): > + for l in StringIO(response[:-3]): > self.progress_callback("Output", lineno, l.rstrip()) > r = self._config.current_behavior.expected_output_regexp > if r: > > I committed your patch as revision r2451 (without further testing). Thank you for the patch! Cheers, Erich -- May the Forth be with you ... |