summaryrefslogtreecommitdiffstats
path: root/presentty/ansiparser.py
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-09-21 17:02:11 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-09-21 18:58:39 -0700
commit319a8283c7d9c14911cd26c5710a395942d86c32 (patch)
tree1b1ad35c7a1a477b44840a3c115134947e66996d /presentty/ansiparser.py
parent308a06134d7749638c7ba3afcc4031f31ba09930 (diff)
downloadpresentty-python3-port-try2.tar.gz
presentty-python3-port-try2.tar.xz
presentty-python3-port-try2.zip
Initial python3 workpython3-port-try2
This is enough to get presentty to display the demo presentation all the way through. The Python3 version appears to have some slight performance problems (or perhaps it's a difference in behaviour) during transitions. On displaying a new slide, the text pulses once (gets brighter than it should be in its final state).
Diffstat (limited to 'presentty/ansiparser.py')
-rw-r--r--presentty/ansiparser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/presentty/ansiparser.py b/presentty/ansiparser.py
index 4750b9e..11d9de6 100644
--- a/presentty/ansiparser.py
+++ b/presentty/ansiparser.py
@@ -13,9 +13,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, division, print_function
+
import re
import urwid
+from six.moves import range
class ANSIParser(object):
colors = [