use unicode literal

This commit is contained in:
j 2014-10-31 16:30:11 +01:00
parent 7040fdd564
commit 523ae0fd51

View file

@ -158,7 +158,7 @@ def wrapText(text, max_width, max_lines, font_file, font_size):
image = Image.new('RGB', (1, 1))
draw = ImageDraw.Draw(image)
font = ImageFont.truetype(font_file, font_size, encoding='unic')
ellipsis = ''.decode('utf-8')
ellipsis = u''
separators = ['-', '+', '/', ':']
if get_width(text) <= max_width:
# text fits in one line