From 42d614dc0e68ae6a966aefacc449e91ba0412033 Mon Sep 17 00:00:00 2001 From: Michael K Date: Fri, 15 Aug 2014 15:45:19 +0000 Subject: [PATCH] Changed check to basestring, allowing for ansi. --- src/utils/ansi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ansi.py b/src/utils/ansi.py index 72b6f8006..84d7a7f54 100644 --- a/src/utils/ansi.py +++ b/src/utils/ansi.py @@ -356,7 +356,7 @@ def _spacing_preflight(func): def wrapped(self, width, fillchar=None): if fillchar is None: fillchar = " " - if (len(fillchar) != 1) or (not isinstance(fillchar, str)): + if (len(fillchar) != 1) or (not isinstance(fillchar, basestring)): raise TypeError("must be char, not %s" % type(fillchar)) if not isinstance(width, int): raise TypeError("integer argument expected, got %s" % type(width))