~laney/ubuntu/vivid/0ad/test

« back to all changes in this revision

Viewing changes to libraries/source/cxxtest-4.3/python/convert.py

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-05-17 16:30:39 UTC
  • mfrom: (5.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20140517163039-whlz3xf64hbmi8x1
Tags: 0.0.16-1
* New upstream release.
  - Drop debian/patches/fix-kfreebsd-ftbfs.patch; applied upstream.
* Avoid repacking tarball by including missing jquery sources in Debian diff,
  see debian/missing-sources/jquery-1.8.{0,3}.js. Alternative way of fixing
  #735349.
  - Update debian/copyright to include missing license entries for the
    various javascript libraries contained in the source tarball.
  - Revert changes made to debian/control in 0ad/0.0.15+dfsg-3, i.e.:
    revert: debian/control: Hardcode versions of 0ad-data{,-common} to
            depend on to workaround the fact that 0.0.15+dfsg is strictly
            greater than 0.0.15.
* Build-dep on libgloox-dev (>= 1.0.9) to ensure that 0ad is built with
  newer enough gloox to avoid lobby connectivity issues.
* Add new build-deps: libicu-dev, libmozjs-24-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#-------------------------------------------------------------------------
 
9
#
 
10
# Execute this script to copy the cxxtest/*.py files
 
11
# and run 2to3 to convert them to Python 3.
 
12
#
 
13
 
 
14
import glob
 
15
import subprocess
 
16
import os
 
17
import shutil
 
18
 
 
19
os.chdir('cxxtest')
 
20
for file in glob.glob('*.py'):
 
21
    shutil.copyfile(file, '../python3/cxxtest/'+file)
 
22
#
 
23
os.chdir('../python3/cxxtest')
 
24
#
 
25
for file in glob.glob('*.py'):
 
26
    subprocess.call('2to3 -w '+file, shell=True)
 
27