Comment #7 on issue 471 by Andreas.EbbertKarroum: Replace all occurrences of `str()` with `unicode()` or `utils.unic()`
http://code.google.com/p/robotframework/issues/detail?id=471

Hm, when I search for [\s\(\[\,]str\( in the sources, there are still many hits.
Alone in sources:

src
robot
libraries
BuiltIn.py
847: times = utils.normalize(str(times))
Collections.py (4 matches)
337: diffs = ', '.join([ str(item) for item in list2 if item not in list1 ])
569: diffs = [ str(k) for k in keys if k not in dict1 ]
597: miss1 = [ str(k) for k in keys2 if k not in dict1 ]
598: miss2 = [ str(k) for k in keys1 if k not in dict2 ]
OperatingSystem.py (2 matches)
200: command = str(command)
862: value = str(value)
Remote.py
79: return str(item)
Telnet.py
316: text = str(text)
output
xmllogger.py (3 matches)
89: 'timeout': str(test.timeout) }
184: attrs['pass'] = str(stat.passed)
185: attrs['fail'] = str(stat.failed)
parsing
metadata.py
140: % (self.name, str(err)))
userkeyword.py (2 matches)
33: _report_creating_failed(data, str(err))
34: handler = UserErrorHandler(data.name, str(err))
running
javaargcoercer.py
84: if arg in type_list or str(arg) in primitive_list:
keywords.py (5 matches)
49: self.timeout = str(handler.timeout)
103: msg = str(err)
193: self._error = str(err)
223: msg = str(err)
322: errors.append(str(err))
testlibraries.py (2 matches)
94: return str(code.ROBOT_LIBRARY_VERSION)
97: return str(code.__version__)
timeouts.py
64: return cmp(str(self), other)
utils
abstractdomwrapper.py
47: raise AttributeError("Invalid path '%s'" % str(path))
asserts.py (3 matches)
155: exc_name = str(exc_class)
164: assert_equal(expected_msg, str(err), 'Correct exception but wrong message')
169: exc_name = str(exc_class)
error.py (2 matches)
98: exc_msg = str(exc_value)
110: lines = [ line for line in str(output).splitlines()
importing.py
112: fromlist = [str(classname)]  # Unicode not generally accepted
robottypes.py (2 matches)
126: ret = str(type(item))
145: return str(item)
__init__.py (2 matches)
53: _exit(INFO_PRINTED, str(msg))
55: _exit(DATA_ERROR, str(err))

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to