From c276ecac4acdde55ecbb5df92ec7b56feeea6691 Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Tue, 16 Sep 2014 20:00:28 +0000
Subject: [PATCH] Slight reversion to earlier code - checking up on
 codecs.open(), it turns out that it returns a file object with __enter__ and
 __exit__ methods, so can be used in a 'with codecs.open(path) as file:'
 pattern.  - Legacy-Id: 8317

---
 ietf/iesg/agenda.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ietf/iesg/agenda.py b/ietf/iesg/agenda.py
index 91bc76e4e..eb0d9f212 100644
--- a/ietf/iesg/agenda.py
+++ b/ietf/iesg/agenda.py
@@ -3,7 +3,6 @@
 import codecs
 import datetime
 from collections import OrderedDict
-from contextlib import closing
 
 from django.conf import settings
 from django.http import Http404
@@ -141,7 +140,7 @@ def fill_in_agenda_administrivia(date, sections):
 
     for s, key, filename in extra_info_files:
         try:
-            with closing(codecs.open(filename, 'r', 'utf-8', 'replace')) as f:
+            with codecs.open(filename, 'r', 'utf-8', 'replace') as f:
                 t = f.read().strip()
         except IOError:
             t = u"(Error reading %s)" % filename