* Scripts/webkitpy/common/net/file_uploader.py:
(FileUploader.upload_as_multipart_form_data):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105759
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-24 Ryosuke Niwa <rniwa@webkit.org>
+
+ Another build fix attempt after r105543.
+
+ * Scripts/webkitpy/common/net/file_uploader.py:
+ (FileUploader.upload_as_multipart_form_data):
+
2012-01-24 Ryosuke Niwa <rniwa@webkit.org>
Build fix attempt after r105543.
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 = _encode_multipart_form_data(attrs, file_objs)