Tweaked bin/rfc-editor-* scripts
- Legacy-Id: 17438
This commit is contained in:
parent
170271d97d
commit
4ecaeab9c6
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue