Revision: 2549
Author: janne.t.harkonen
Date: Thu Feb 25 21:21:56 2010
Log: Replace unsafe usages of str() with utils.unic()
http://code.google.com/p/robotframework/source/detail?r=2549

Modified:
 /trunk/src/robot/__init__.py

=======================================
--- /trunk/src/robot/__init__.py        Sun Apr 19 13:26:54 2009
+++ /trunk/src/robot/__init__.py        Thu Feb 25 21:21:56 2010
@@ -50,9 +50,9 @@
                           help='help', version='version', check_args=True,
                           **argparser_config)
     except Information, msg:
-        _exit(INFO_PRINTED, str(msg))
+        _exit(INFO_PRINTED, utils.unic(msg))
     except DataError, err:
-        _exit(DATA_ERROR, str(err))
+        _exit(DATA_ERROR, utils.unic(err))

     LOGGER.info('Data sources: %s' % utils.seq2str(datasources))
     try:

Reply via email to