From 167d4df40b55f2e8b559a797bb93b09554a871d0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 9 Nov 2010 16:10:52 +0000 Subject: Update Python scripts to work in Python 3. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2162 --- data/convert-icon | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'data/convert-icon') diff --git a/data/convert-icon b/data/convert-icon index c651bc7f..30fade20 100755 --- a/data/convert-icon +++ b/data/convert-icon @@ -1,6 +1,4 @@ -#!/usr/bin/python -# -# $Id: convert-icon 704 2006-10-18 00:51:11Z fraggle $ +#!/usr/bin/env python # # Copyright(C) 2005 Simon Howard # @@ -29,7 +27,7 @@ import re try: import Image except ImportError: - print "WARNING: Could not update %s. Please install the Python Imaging library." % sys.argv[2] + print("WARNING: Could not update %s. Please install the Python Imaging library." % sys.argv[2]) sys.exit(0) @@ -71,4 +69,3 @@ def convert_image(filename, output_filename): convert_image(sys.argv[1], sys.argv[2]) - -- cgit v1.2.3