comparison forums/management/commands/topic_export.py @ 647:2a4e2e86c65e

Fix last commit for Python 2.5. :(
author Brian Neal <bgneal@gmail.com>
date Sat, 23 Mar 2013 13:21:14 -0500
parents 73eb098761a1
children 91de9b15b410
comparison
equal deleted inserted replaced
646:73eb098761a1 647:2a4e2e86c65e
3 3
4 A management command to export a forum topic by rendering it through a given 4 A management command to export a forum topic by rendering it through a given
5 template. 5 template.
6 6
7 """ 7 """
8 from __future__ import with_statement
8 from optparse import make_option 9 from optparse import make_option
9 import re 10 import re
10 11
11 from django.core.management.base import LabelCommand, CommandError 12 from django.core.management.base import LabelCommand, CommandError
12 from django.template.loader import render_to_string, TemplateDoesNotExist 13 from django.template.loader import render_to_string, TemplateDoesNotExist