changeset 333:0bf5a5677067

Import from future with_statement for Python 2.5 in import_old_links and podcasts scripts.
author Brian Neal <bgneal@gmail.com>
date Fri, 25 Feb 2011 22:03:08 +0000
parents a805c496923f
children 6805d15cda13
files gpp/legacy/management/commands/import_old_links.py gpp/legacy/management/commands/import_old_podcasts.py
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/legacy/management/commands/import_old_links.py	Fri Feb 25 04:23:42 2011 +0000
+++ b/gpp/legacy/management/commands/import_old_links.py	Fri Feb 25 22:03:08 2011 +0000
@@ -1,6 +1,7 @@
 """
 import_old_links.py - For importing links from SG101 1.0 as csv files.
 """
+from __future__ import with_statement
 import csv
 import datetime
 
--- a/gpp/legacy/management/commands/import_old_podcasts.py	Fri Feb 25 04:23:42 2011 +0000
+++ b/gpp/legacy/management/commands/import_old_podcasts.py	Fri Feb 25 22:03:08 2011 +0000
@@ -1,6 +1,7 @@
 """
 import_old_podcasts.py - For importing podcasts from SG101 1.0 as csv files.
 """
+from __future__ import with_statement
 import csv
 import datetime