From 3e92a86161ab72f0d660f9318407e6728b450b6e Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Mon, 6 Jun 2016 00:25:36 +0200 Subject: [PATCH] Fix `str_to_sprite` on Python 3. I'm using a list comprehension as it is easier to grok than `list(map(list, lines))`. --- gitfiti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitfiti.py b/gitfiti.py index e05432fcc..67efb4dc0 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -133,7 +133,7 @@ def str_to_sprite(content): lines = filter(is_empty_line, lines) # Break up lines into each character - split_lines = map(list, lines) + split_lines = [list(line) for line in lines] # Replace each character with its numeric equivalent for line in split_lines: