Undid an unintentional adaptation to the xml2rfc 2.6.0 call interface change.

- Legacy-Id: 13556
This commit is contained in:
Henrik Levkowetz 2017-06-07 00:07:39 +00:00
parent 07b89e0b15
commit fb66f38afd
2 changed files with 1 additions and 4 deletions

2
PLAN
View file

@ -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.

View file

@ -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)