Title: [255148] trunk/Tools
Revision
255148
Author
[email protected]
Date
2020-01-27 08:31:55 -0800 (Mon, 27 Jan 2020)

Log Message

webkitpy: Replace StringIO.StringIO in statusserver.py
https://bugs.webkit.org/show_bug.cgi?id=206825

Reviewed by Aakash Jain.

* Scripts/webkitpy/common/net/statusserver.py:
(StatusServer._upload_attachment_to_server): The Python 3 compatible StringIO
object cannot be referenced as StringIO.StringIO

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (255147 => 255148)


--- trunk/Tools/ChangeLog	2020-01-27 16:28:30 UTC (rev 255147)
+++ trunk/Tools/ChangeLog	2020-01-27 16:31:55 UTC (rev 255148)
@@ -1,3 +1,14 @@
+2020-01-27  Jonathan Bedard  <[email protected]>
+
+        webkitpy: Replace StringIO.StringIO in statusserver.py
+        https://bugs.webkit.org/show_bug.cgi?id=206825
+
+        Reviewed by Aakash Jain.
+
+        * Scripts/webkitpy/common/net/statusserver.py:
+        (StatusServer._upload_attachment_to_server): The Python 3 compatible StringIO
+        object cannot be referenced as StringIO.StringIO
+
 2020-01-26  Said Abou-Hallawa  <[email protected]>
 
         Throttling requestAnimationFrame should be controlled by RenderingUpdateScheduler

Modified: trunk/Tools/Scripts/webkitpy/common/net/statusserver.py (255147 => 255148)


--- trunk/Tools/Scripts/webkitpy/common/net/statusserver.py	2020-01-27 16:28:30 UTC (rev 255147)
+++ trunk/Tools/Scripts/webkitpy/common/net/statusserver.py	2020-01-27 16:31:55 UTC (rev 255148)
@@ -144,10 +144,10 @@
         self._browser.open(upload_attachment_url)
         self._browser.select_form(name='upload_attachment')
         self._browser['attachment_id'] = unicode(attachment_id)
-        self._browser.add_file(StringIO.StringIO(unicode(attachment_metadata)), 'application/json', 'attachment-{}-metadata.json'.format(attachment_id), 'attachment_metadata')
+        self._browser.add_file(StringIO(unicode(attachment_metadata)), 'application/json', 'attachment-{}-metadata.json'.format(attachment_id), 'attachment_metadata')
         if isinstance(attachment_data, unicode):
             attachment_data = attachment_data.encode('utf-8')
-        self._browser.add_file(StringIO.StringIO(attachment_data), 'text/plain', 'attachment-{}.patch'.format(attachment_id), 'attachment_data')
+        self._browser.add_file(StringIO(attachment_data), 'text/plain', 'attachment-{}.patch'.format(attachment_id), 'attachment_data')
         self._browser.submit()
 
     def upload_attachment(self, attachment):
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to