From e6e0b16005d04a26b4f99e9ccb6790b0f7a82f1a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 14 Mar 2020 18:42:48 +0000 Subject: [PATCH] Tweaked bin/rfc-editor-* scripts - Legacy-Id: 17439 --- ietf/bin/rfc-editor-index-updates | 2 +- ietf/bin/rfc-editor-queue-updates | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/bin/rfc-editor-index-updates b/ietf/bin/rfc-editor-index-updates index 6c55bc3d7..2c0189302 100755 --- a/ietf/bin/rfc-editor-index-updates +++ b/ietf/bin/rfc-editor-index-updates @@ -49,7 +49,7 @@ 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, stream=True).text +rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL).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 cba0ed3f7..08f3603c6 100755 --- a/ietf/bin/rfc-editor-queue-updates +++ b/ietf/bin/rfc-editor-queue-updates @@ -1,5 +1,6 @@ #!/usr/bin/env python +import io import os import requests import socket