Make "gendummydata.py" Python 3 compliant.

* Transform into valid Python 3.x code using 2to3.

* Change shebang from "/usr/bin/python2" to "/usr/bin/python3".

* Invoke with "python3" instead of "python2" in "reloadtestdb.sh".

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-04-12 14:47:54 +02:00
parent e1bf49e03c
commit 31cda618ca
2 changed files with 15 additions and 15 deletions

View file

@ -20,7 +20,7 @@ mysql -h $DB_HOST -u $DB_USER -p$DB_PASS < aur-schema.sql
if [ ! -f $DATA_FILE ]; then
echo "creating dumy-data..."
python2 gendummydata.py $DATA_FILE
python3 gendummydata.py $DATA_FILE
fi
echo "loading dummy-data..."