From a1eef5e674647bb157a3b6e477aead2017293081 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Thu, 7 Jun 2018 20:45:10 -0700 Subject: [PATCH 1/2] Test Python 3.6 on Travis --- .travis.yml | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 977297c..9c54bf4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python python: - "2.7" + - "3.6" install: - "pip install ." diff --git a/README.md b/README.md index dbee93a..b1fcd50 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ It's one of those tools where, the more you use it, the more you think of places Dependencies ------------ -* python2 +* Python 2.7 or Python 3.6+ Credits ------- From 514e2876bd50377e4d6cbedd33b7880b29a16c35 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Thu, 7 Jun 2018 20:48:50 -0700 Subject: [PATCH 2/2] Fix Python 3 compatibility --- codemod/terminal_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codemod/terminal_helper.py b/codemod/terminal_helper.py index 91e2927..343b179 100644 --- a/codemod/terminal_helper.py +++ b/codemod/terminal_helper.py @@ -12,6 +12,9 @@ import termios import struct +if sys.version_info[0] >= 3: + unicode = str + def terminal_get_size(default_size=(25, 80)): """