diff --git a/wscript b/wscript index 24aec92..189b26b 100644 --- a/wscript +++ b/wscript @@ -141,7 +141,7 @@ def process_tokens(tokens): line_buf = [] for (type, token, start, end, line) in tokens: - token = token.replace('\r\n', '\n') + token = token.decode('utf-8').replace('\r\n', '\n') if type == tokenize.NEWLINE: if line_buf: accu.append(indent * '\t')