From 4ecaeab9c67700243a5b07ab58b1dbba69c26211 Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Sat, 14 Mar 2020 16:26:21 +0000
Subject: [PATCH] Tweaked bin/rfc-editor-* scripts  - Legacy-Id: 17438

---
 ietf/bin/rfc-editor-index-updates | 4 ++--
 ietf/bin/rfc-editor-queue-updates | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ietf/bin/rfc-editor-index-updates b/ietf/bin/rfc-editor-index-updates
index 9cd7b96f4..6c55bc3d7 100755
--- a/ietf/bin/rfc-editor-index-updates
+++ b/ietf/bin/rfc-editor-index-updates
@@ -49,8 +49,8 @@ log("Updating document metadata from RFC index from %s" % settings.RFC_EDITOR_IN
 
 
 socket.setdefaulttimeout(30)
-rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL).raw
-index_data = ietf.sync.rfceditor.parse_index(rfc_index_xml)
+rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL, stream=True).text
+index_data = ietf.sync.rfceditor.parse_index(io.StringIO(rfc_index_xml))
 
 errata_data = requests.get(settings.RFC_EDITOR_ERRATA_JSON_URL).json()
 
diff --git a/ietf/bin/rfc-editor-queue-updates b/ietf/bin/rfc-editor-queue-updates
index db454984b..cba0ed3f7 100755
--- a/ietf/bin/rfc-editor-queue-updates
+++ b/ietf/bin/rfc-editor-queue-updates
@@ -21,8 +21,8 @@ from ietf.utils.log import log
 log("Updating RFC Editor queue states from %s" % settings.RFC_EDITOR_QUEUE_URL)
 
 socket.setdefaulttimeout(30)
-response = requests.get(settings.RFC_EDITOR_QUEUE_URL).raw
-drafts, warnings = parse_queue(response)
+response = requests.get(settings.RFC_EDITOR_QUEUE_URL).text
+drafts, warnings = parse_queue(io.StringIO(response))
 for w in warnings:
     log(u"Warning: %s" % w)