@@ -188,7 +188,7 @@ def document_main(request, name, rev=None):
188188 filename = name + ".txt"
189189
190190 content = get_document_content (filename , os .path .join (settings .RFC_PATH , filename ),
191- split_content , markup = True ). decode ( 'utf-8' )
191+ split_content , markup = True )
192192 utext = doc .text_or_error () # pyflakes:ignore
193193 if content and content != utext and not 'Error; cannot read' in content :
194194 debug .show ('content[:64]' )
@@ -224,7 +224,7 @@ def document_main(request, name, rev=None):
224224 filename = "%s-%s.txt" % (draft_name , doc .rev )
225225
226226 content = get_document_content (filename , os .path .join (settings .INTERNET_ALL_DRAFTS_ARCHIVE_DIR , filename ),
227- split_content , markup = True ). decode ( 'utf-8' )
227+ split_content , markup = True )
228228 utext = doc .text_or_error () # pyflakes:ignore
229229 if content and content != utext and not 'Error; cannot read' in content :
230230 debug .show ('content[:64]' )
@@ -453,7 +453,7 @@ def document_main(request, name, rev=None):
453453 if doc .type_id == "charter" :
454454 filename = "%s-%s.txt" % (doc .canonical_name (), doc .rev )
455455
456- content = get_document_content (filename , os .path .join (settings .CHARTER_PATH , filename ), split = False , markup = True ). decode ( 'utf-8' )
456+ content = get_document_content (filename , os .path .join (settings .CHARTER_PATH , filename ), split = False , markup = True )
457457 utext = doc .text_or_error () # pyflakes:ignore
458458 if content and content != utext and not 'Error; cannot read' in content :
459459 debug .show ('content[:64]' )
@@ -502,7 +502,7 @@ def document_main(request, name, rev=None):
502502 # This could move to a template
503503 content = u"A conflict review response has not yet been proposed."
504504 else :
505- content = get_document_content (filename , pathname , split = False , markup = True ). decode ( 'utf-8' )
505+ content = get_document_content (filename , pathname , split = False , markup = True )
506506 utext = doc .text_or_error () # pyflakes:ignore
507507 if content and content != utext and not 'Error; cannot read' in content :
508508 debug .show ('content[:64]' )
@@ -535,7 +535,7 @@ def document_main(request, name, rev=None):
535535 # This could move to a template
536536 content = u"Status change text has not yet been proposed."
537537 else :
538- content = get_document_content (filename , pathname , split = False ). decode ( 'utf-8' )
538+ content = get_document_content (filename , pathname , split = False )
539539 utext = doc .text_or_error () # pyflakes:ignore
540540 if content and content != utext and not 'Error; cannot read' in content :
541541 debug .show ('content[:64]' )
@@ -593,7 +593,7 @@ def document_main(request, name, rev=None):
593593 url = urlbase + extension
594594
595595 if extension == ".txt" :
596- content = get_document_content (basename , pathname + extension , split = False ). decode ( 'utf-8' )
596+ content = get_document_content (basename , pathname + extension , split = False )
597597 utext = doc .text_or_error () # pyflakes:ignore
598598 if content != utext :
599599 debug .show ('content[:64]' )
0 commit comments