Title: [105759] trunk/Tools
Revision
105759
Author
[email protected]
Date
2012-01-24 11:01:36 -0800 (Tue, 24 Jan 2012)

Log Message

Another build fix attempt after r105543.

* Scripts/webkitpy/common/net/file_uploader.py:
(FileUploader.upload_as_multipart_form_data):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (105758 => 105759)


--- trunk/Tools/ChangeLog	2012-01-24 18:55:52 UTC (rev 105758)
+++ trunk/Tools/ChangeLog	2012-01-24 19:01:36 UTC (rev 105759)
@@ -1,5 +1,12 @@
 2012-01-24  Ryosuke Niwa  <[email protected]>
 
+        Another build fix attempt after r105543.
+
+        * Scripts/webkitpy/common/net/file_uploader.py:
+        (FileUploader.upload_as_multipart_form_data):
+
+2012-01-24  Ryosuke Niwa  <[email protected]>
+
         Build fix attempt after r105543.
 
         * Scripts/webkitpy/common/net/file_uploader.py:

Modified: trunk/Tools/Scripts/webkitpy/common/net/file_uploader.py (105758 => 105759)


--- trunk/Tools/Scripts/webkitpy/common/net/file_uploader.py	2012-01-24 18:55:52 UTC (rev 105758)
+++ trunk/Tools/Scripts/webkitpy/common/net/file_uploader.py	2012-01-24 19:01:36 UTC (rev 105759)
@@ -95,7 +95,8 @@
         file_objs = []
         for filename, path in files:
             # FIXME: We should talk to the filesytem via a Host object.
-            file_objs.append(('file', filename, filesystem.read_text_file(filename)))
+            with codecs.open(path, "rb") as file:
+                file_objs.append(('file', filename, file.read()))
 
         # FIXME: We should use the same variable names for the formal and actual parameters.
         content_type, data = "" file_objs)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to