1
#-------------------------------------------------------------------------
2
# CxxTest: A lightweight C++ unit testing library.
3
# Copyright (c) 2008 Sandia Corporation.
4
# This software is distributed under the LGPL License v3
5
# For more information, see the COPYING file in the top CxxTest directory.
6
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7
# the U.S. Government retains certain rights in this software.
8
#-------------------------------------------------------------------------
10
# Execute this script to copy the cxxtest/*.py files
11
# and run 2to3 to convert them to Python 3.
20
for file in glob.glob('*.py'):
21
shutil.copyfile(file, '../python3/cxxtest/'+file)
23
os.chdir('../python3/cxxtest')
25
for file in glob.glob('*.py'):
26
subprocess.call('2to3 -w '+file, shell=True)