2 new revisions:

Revision: 6f6141fe7995
Author:   Mikko Korpela <[email protected]>
Date:     Fri Jun 10 05:02:35 2011
Log:      serializing: Add license texts
http://code.google.com/p/robotframework/source/detail?r=6f6141fe7995

Revision: ffa51394b2bc
Author:   Mikko Korpela <[email protected]>
Date:     Fri Jun 10 05:10:43 2011
Log:      serialize_log: Use utf-8 encoding for files
http://code.google.com/p/robotframework/source/detail?r=ffa51394b2bc

==============================================================================
Revision: 6f6141fe7995
Author:   Mikko Korpela <[email protected]>
Date:     Fri Jun 10 05:02:35 2011
Log:      serializing: Add license texts
http://code.google.com/p/robotframework/source/detail?r=6f6141fe7995

Modified:
 /src/robot/serializing/jsparser.py
 /src/robot/serializing/serialize_log.py

=======================================
--- /src/robot/serializing/jsparser.py  Fri Jun 10 04:08:17 2011
+++ /src/robot/serializing/jsparser.py  Fri Jun 10 05:02:35 2011
@@ -1,3 +1,17 @@
+#  Copyright 2008-2011 Nokia Siemens Networks Oyj
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
 from __future__ import with_statement
 import StringIO
 import xml.sax as sax
=======================================
--- /src/robot/serializing/serialize_log.py     Fri Jun 10 04:08:36 2011
+++ /src/robot/serializing/serialize_log.py     Fri Jun 10 05:02:35 2011
@@ -1,7 +1,21 @@
-from __future__ import with_statement
-
-import re
+#  Copyright 2008-2011 Nokia Siemens Networks Oyj
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+from __future__ import with_statement
 import os
+import re
+
 import robot
 from robot import utils


==============================================================================
Revision: ffa51394b2bc
Author:   Mikko Korpela <[email protected]>
Date:     Fri Jun 10 05:10:43 2011
Log:      serialize_log: Use utf-8 encoding for files
http://code.google.com/p/robotframework/source/detail?r=ffa51394b2bc

Modified:
 /src/robot/serializing/serialize_log.py

=======================================
--- /src/robot/serializing/serialize_log.py     Fri Jun 10 05:02:35 2011
+++ /src/robot/serializing/serialize_log.py     Fri Jun 10 05:10:43 2011
@@ -13,6 +13,7 @@
 #  limitations under the License.

 from __future__ import with_statement
+import codecs
 import os
 import re

@@ -41,7 +42,7 @@
     return utils.get_link_path(log, os.path.dirname(report))

def _build_file(outpath, test_output_datamodel, title, background, template, log_path=None):
-    with open(outpath, 'w') as outfile:
+    with codecs.open(outpath, 'w', encoding='UTF-8') as outfile:
populator = _Populator(outfile, test_output_datamodel, title, background, log_path)
         with open(template, 'r') as templ:
             for line in templ:
@@ -142,7 +143,7 @@
return os.path.join(PATH, JS_FILE_REGEXP.search(line).group(1).replace('/', os.path.sep))

     def _write_js(self, js_file):
-        with open(js_file, 'r') as js:
+        with codecs.open(js_file, 'r', encoding='UTF-8') as js:
             for jsline in js:
                 self._log.write(jsline)
         self._log.write('\n\n')

Reply via email to