@@ -128,7 +128,7 @@ def emit(self, s=''):
128128 output buffer. If s is an empty string (default) then an empty line is
129129 created with no indentation.
130130 """
131- assert isinstance (s , six .text_type ), 's must be a string type '
131+ assert isinstance (s , six .text_type ), 's must be a unicode string '
132132 assert '\n ' not in s , \
133133 'String to emit cannot contain newline strings.'
134134 if s :
@@ -243,7 +243,7 @@ def generate_multiline_list(self, items, before='', after='',
243243 should have a trailing separator. Ignored when compact is true.
244244 """
245245 assert len (delim ) == 2 and isinstance (delim [0 ], six .text_type ) and \
246- isinstance (delim [1 ], six .text_type ), 'delim must be a tuple of two strings.'
246+ isinstance (delim [1 ], six .text_type ), 'delim must be a tuple of two unicode strings.'
247247
248248 if len (items ) == 0 :
249249 self .emit (before + delim [0 ] + delim [1 ] + after )
@@ -301,7 +301,7 @@ def block(self, before='', after='', delim=('{','}'), dent=None):
301301 indentation increment is used (four spaces or one tab).
302302 """
303303 assert len (delim ) == 2 and isinstance (delim [0 ], six .text_type ) and \
304- isinstance (delim [1 ], six .text_type ), 'delim must be a tuple of two strings.'
304+ isinstance (delim [1 ], six .text_type ), 'delim must be a tuple of two unicode strings.'
305305
306306 if before :
307307 self .emit ('{} {}' .format (before , delim [0 ]))
0 commit comments