Unify version_info checks.

This commit is contained in:
Georg Brandl
2010-07-28 19:36:57 +02:00
parent 024ec6696f
commit b621cfaec1
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ except NameError:
# the ubiquitous "bytes" helper function
if sys.version_info > (3, 0):
if sys.version_info >= (3, 0):
def b(s):
return s.encode('utf-8')
else:

View File

@@ -13,7 +13,7 @@
import sys
from os import path, chdir, listdir
if sys.version_info >= (3,):
if sys.version_info >= (3, 0):
print('Copying and converting sources to build/lib/tests...')
from distutils.util import copydir_run_2to3
testroot = path.dirname(__file__) or '.'