diff --git a/ietf/bin/iana-protocols-updates b/ietf/bin/iana-protocols-updates index 055a80c43..c3a5f28de 100755 --- a/ietf/bin/iana-protocols-updates +++ b/ietf/bin/iana-protocols-updates @@ -3,9 +3,10 @@ # This script requires that the proper virtual python environment has been # invoked before start -import os -import sys import datetime +import os +import requests +import sys import syslog # boilerplate @@ -19,7 +20,7 @@ import django django.setup() from django.conf import settings -from ietf.sync.iana import fetch_protocol_page, parse_protocol_page, update_rfc_log_from_protocol_page +from ietf.sync.iana import parse_protocol_page, update_rfc_log_from_protocol_page def chunks(l, n): """Split list l up in chunks of max size n.""" diff --git a/ietf/bin/rfc-editor-index-updates b/ietf/bin/rfc-editor-index-updates index 987760696..fd2e48ee8 100755 --- a/ietf/bin/rfc-editor-index-updates +++ b/ietf/bin/rfc-editor-index-updates @@ -47,7 +47,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).text +rfc_index_xml = requests.get(settings.RFC_EDITOR_INDEX_URL).raw index_data = ietf.sync.rfceditor.parse_index(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 8d492967d..7224f329a 100755 --- a/ietf/bin/rfc-editor-queue-updates +++ b/ietf/bin/rfc-editor-queue-updates @@ -1,6 +1,7 @@ #!/usr/bin/env python import os +import requests import socket import sys @@ -20,7 +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).text +response = requests.get(settings.RFC_EDITOR_QUEUE_URL).raw +debug.type('response') drafts, warnings = parse_queue(response) for w in warnings: log(u"Warning: %s" % w)