Author: iwontbecreative
Date: Mon Mar 21 23:32:18 2011
New Revision: 48967
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48967&view=rev
Log:
Make terrain2wiki.py compatible with python3 (Doesn't break python2 obviously).
This might be usefull for Linux distribs that come with python3 by default.
Modified:
trunk/data/tools/terrain2wiki.py
Modified: trunk/data/tools/terrain2wiki.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/terrain2wiki.py?rev=48967&r1=48966&r2=48967&view=diff
==============================================================================
--- trunk/data/tools/terrain2wiki.py (original)
+++ trunk/data/tools/terrain2wiki.py Mon Mar 21 23:32:18 2011
@@ -13,7 +13,7 @@
try:
import argparse
except ImportError:
- print 'Please install argparse by running "easy_install argparse"'
+ print('Please install argparse by running "easy_install argparse"')
sys.exit(1)
@@ -85,7 +85,7 @@
output_path = args.output_path
if not os.path.exists(path) and not path.endswith('.cfg'):
- print "Invalid path: '%s' does not exist" % path
+ print("Invalid path: '%s' does not exist") % path
sys.exit(1)
with open(path, "r") as input_file:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits