Revision: bf8e006b5744
Branch:   default
Author:   Jussi Malinen <jussi.ao.mali...@gmail.com>
Date:     Tue Apr 15 13:15:34 2014 UTC
Log:      Support Pyte version 0.4.8 on Terminal emulation for Telnet

Update issue 1686

Support for Pyte 0.4.8
http://code.google.com/p/robotframework/source/detail?r=bf8e006b5744

Modified:
 /src/robot/libraries/Telnet.py

=======================================
--- /src/robot/libraries/Telnet.py      Thu Jan 23 14:00:53 2014 UTC
+++ /src/robot/libraries/Telnet.py      Tue Apr 15 13:15:34 2014 UTC
@@ -1041,12 +1041,15 @@

     def _get_history(self):
         if self._screen.history.top:
- return self._get_screen(self._screen.history.top) + self._newline + return self._get_history_screen(self._screen.history.top) + self._newline
         return ''

+    def _get_history_screen(self, deque):
+        return self._newline.join(''.join(c.data for c in row).rstrip()
+                                  for row in deque).rstrip(self._newline)
+
     def _get_screen(self, screen):
-        return self._newline.join(''.join(c.data for c in row).rstrip()
-                                  for row in screen).rstrip(self._newline)
+ return self._newline.join(row.rstrip() for row in screen.display).rstrip(self._newline)

     def feed(self, input_bytes):
         self._stream.feed(input_bytes)

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to