From 8e2230ee504a376a0034fc75445a0d17bb12cc09 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Thu, 7 Jun 2012 17:57:13 +0200 Subject: [PATCH] issue #1171, jerome likes accents --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 24aec921..435e9120 100644 --- a/wscript +++ b/wscript @@ -229,7 +229,9 @@ def sfilter(path): # cnt = 'import sys\nif sys.hexversion < 0x020400f0: from sets import Set as set\n' + cnt cnt = '#! /usr/bin/env python\n# encoding: utf-8\n# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file\n\n' + cnt - return (io.BytesIO(cnt.encode('utf-8')), len(cnt), cnt) + if sys.hexversion > 0x030000f0: + return (io.BytesIO(cnt.encode('utf-8')), len(cnt), cnt) + return (io.BytesIO(cnt), len(cnt), cnt) def create_waf(*k, **kw): mw = 'tmp-waf-'+VERSION