summaryrefslogtreecommitdiff
path: root/urwid/old_str_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'urwid/old_str_util.py')
-rwxr-xr-xurwid/old_str_util.py7
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()