Skip to content

Commit 4ecaeab

Browse files
committed
Tweaked bin/rfc-editor-* scripts
- Legacy-Id: 17438
1 parent 170271d commit 4ecaeab

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/bin/rfc-editor-index-updates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ log("Updating document metadata from RFC index from %s" % settings.RFC_EDITOR_IN
4949

5050

5151
socket.setdefaulttimeout(30)
52-
rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL).raw
53-
index_data = ietf.sync.rfceditor.parse_index(rfc_index_xml)
52+
rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL, stream=True).text
53+
index_data = ietf.sync.rfceditor.parse_index(io.StringIO(rfc_index_xml))
5454

5555
errata_data = requests.get(settings.RFC_EDITOR_ERRATA_JSON_URL).json()
5656

ietf/bin/rfc-editor-queue-updates

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ from ietf.utils.log import log
2121
log("Updating RFC Editor queue states from %s" % settings.RFC_EDITOR_QUEUE_URL)
2222

2323
socket.setdefaulttimeout(30)
24-
response = requests.get(settings.RFC_EDITOR_QUEUE_URL).raw
25-
drafts, warnings = parse_queue(response)
24+
response = requests.get(settings.RFC_EDITOR_QUEUE_URL).text
25+
drafts, warnings = parse_queue(io.StringIO(response))
2626
for w in warnings:
2727
log(u"Warning: %s" % w)
2828

0 commit comments

Comments
 (0)