Revision: 0024ccf303ae
Branch: default
Author: Robot Framework Developers (robotframew...@gmail.com)
Date: Thu Sep 19 10:11:49 2013 UTC
Log: StringDumper: faster dumping of empty strings
http://code.google.com/p/robotframework/source/detail?r=0024ccf303ae
Modified:
/src/robot/htmldata/jsonwriter.py
=======================================
--- /src/robot/htmldata/jsonwriter.py Thu Sep 19 09:21:15 2013 UTC
+++ /src/robot/htmldata/jsonwriter.py Thu Sep 19 10:11:49 2013 UTC
@@ -77,7 +77,7 @@
('\n', '\\n'), ('\r', '\\r')]
def dump(self, data, mapping):
- self._write('"%s"' % self._encode(data))
+ self._write('"%s"' % self._encode(data) if data else '')
def _encode(self, string):
for search, replace in self._search_and_replace:
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.