From aa423e369013fe8bf938df296685ba14096ba906 Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Mon, 8 Oct 2018 03:59:16 -0700 Subject: [PATCH] Fix an exhausted generator bug by converting to list --- kmk/common/macros/unicode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmk/common/macros/unicode.py b/kmk/common/macros/unicode.py index a8d58e2..4416459 100644 --- a/kmk/common/macros/unicode.py +++ b/kmk/common/macros/unicode.py @@ -30,10 +30,10 @@ def unicode_string_sequence(unistring): Allows sending things like (╯°□°)╯︵ ┻━┻ directly, without manual conversion to Unicode codepoints. ''' - return unicode_codepoint_sequence( + return unicode_codepoint_sequence([ hex(get_wide_ordinal(s))[2:] for s in unistring - ) + ]) def unicode_codepoint_sequence(codepoints):