diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-05-11 19:54:35 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-05-11 21:30:23 -0700 |
commit | be714a183206490aafec0e244b166ba3de803142 (patch) | |
tree | 1986bc42504e299e1cb472ffe608a7e34c83de99 /urwid/old_str_util.py | |
parent | ef05b48a1cd4d0071873022d1a31d2a076911eb0 (diff) | |
download | urwid-be714a183206490aafec0e244b166ba3de803142.tar.gz |
Fix some Python 3 things that work fine in 2.6 anyway.
Diffstat (limited to 'urwid/old_str_util.py')
-rwxr-xr-x | urwid/old_str_util.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/urwid/old_str_util.py b/urwid/old_str_util.py index 04594ec..83190f5 100755 --- a/urwid/old_str_util.py +++ b/urwid/old_str_util.py @@ -19,6 +19,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Urwid web site: http://excess.org/urwid/ +from __future__ import print_function import re @@ -357,10 +358,10 @@ def process_east_asian_width(): out.append( (num, l) ) last = l - print "widths = [" + print("widths = [") for o in out[1:]: # treat control characters same as ascii - print "\t%r," % (o,) - print "]" + print("\t%r," % (o,)) + print("]") if __name__ == "__main__": process_east_asian_width() |