diff tools/flag_data.py @ 609:678a1a2ef55a

For issue 16, add country flag icons to user profiles & forum posts.
author Brian Neal <bgneal@gmail.com>
date Sat, 28 Jul 2012 15:12:09 -0500
parents 34b1dd3f84fa
children
line wrap: on
line diff
--- a/tools/flag_data.py	Thu Jul 26 14:18:10 2012 -0500
+++ b/tools/flag_data.py	Sat Jul 28 15:12:09 2012 -0500
@@ -8,6 +8,7 @@
 import argparse
 import json
 import os.path
+import sys
 from xml.etree.ElementTree import ElementTree
 
 
@@ -34,7 +35,7 @@
         # see if we have an icon for this country
 
         if not os.path.exists(os.path.join(icon_dir, '%s.png' % code)):
-            print "Could not find icon for %s (%s)" % (name, code)
+            sys.stderr.write("Could not find icon for %s (%s)\n" % (name, code))
         else:
             country_data[code] = name