From fb66f38afd10f4598a1624e1c29bbe2a43b17509 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 7 Jun 2017 00:07:39 +0000 Subject: [PATCH] Undid an unintentional adaptation to the xml2rfc 2.6.0 call interface change. - Legacy-Id: 13556 --- PLAN | 2 -- ietf/submit/views.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/PLAN b/PLAN index 41504ed2b..3d55123ca 100644 --- a/PLAN +++ b/PLAN @@ -7,8 +7,6 @@ Updated: $Date$ Planned work in rough order =========================== -* Merge in the authorstats work - * Use the htmlization lib to improve the rendering of draft text in the datatracker's /doc/draft-foo-bar/ pages. diff --git a/ietf/submit/views.py b/ietf/submit/views.py index ca07dfd50..743760116 100644 --- a/ietf/submit/views.py +++ b/ietf/submit/views.py @@ -3,7 +3,6 @@ import base64 import datetime import os import xml2rfc -import optparse from django.conf import settings from django.contrib import messages @@ -63,7 +62,7 @@ def upload_submission(request): if not form.cleaned_data['txt']: file_name['txt'] = os.path.join(settings.IDSUBMIT_STAGING_PATH, '%s-%s.txt' % (form.filename, form.revision)) try: - pagedwriter = xml2rfc.PaginatedTextRfcWriter(form.xmltree, options=optparse.Values(defaults=dict(quiet=True, verbose=False, utf8=False))) + pagedwriter = xml2rfc.PaginatedTextRfcWriter(form.xmltree, quiet=True) pagedwriter.write(file_name['txt']) except Exception as e: raise ValidationError("Error from xml2rfc: %s" % e)