mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
removed some extraneous imports in django.utils.feedgenerator
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b00a6c29f9
commit
291e309d8d
@ -21,8 +21,6 @@ http://diveintomark.org/archives/2004/02/04/incompatible-rss
|
|||||||
from django.utils.xmlutils import SimplerXMLGenerator
|
from django.utils.xmlutils import SimplerXMLGenerator
|
||||||
import datetime, re, time
|
import datetime, re, time
|
||||||
import email.Utils
|
import email.Utils
|
||||||
from xml.dom import minidom
|
|
||||||
from xml.parsers.expat import ExpatError
|
|
||||||
|
|
||||||
def rfc2822_date(date):
|
def rfc2822_date(date):
|
||||||
return email.Utils.formatdate(time.mktime(date.timetuple()))
|
return email.Utils.formatdate(time.mktime(date.timetuple()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user