Use isort to sort import
…so that they all have the same structure.
This commit is contained in:
parent
c92a340f88
commit
9026316391
15 changed files with 31 additions and 13 deletions
|
@ -8,9 +8,10 @@
|
|||
:license: FreeBSD and LGPL, see license.* for more details.
|
||||
'''
|
||||
|
||||
from feedgen.feed import FeedGenerator
|
||||
import sys
|
||||
|
||||
from feedgen.feed import FeedGenerator
|
||||
|
||||
|
||||
USAGE = '''
|
||||
Usage: python -m feedgen [OPTION]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] >= 3:
|
||||
string_types = str
|
||||
else:
|
||||
|
|
|
@ -8,12 +8,14 @@
|
|||
:license: FreeBSD and LGPL, see license.* for more details.
|
||||
'''
|
||||
|
||||
from lxml import etree
|
||||
from datetime import datetime
|
||||
|
||||
import dateutil.parser
|
||||
import dateutil.tz
|
||||
from feedgen.util import ensure_format, formatRFC2822
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.compat import string_types
|
||||
from feedgen.util import ensure_format, formatRFC2822
|
||||
|
||||
|
||||
class FeedEntry(object):
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.ext.base import BaseExtension
|
||||
|
||||
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.ext.base import BaseEntryExtension, BaseExtension
|
||||
from feedgen.util import ensure_format
|
||||
from feedgen.ext.base import BaseExtension, BaseEntryExtension
|
||||
|
||||
MEDIA_NS = 'http://search.yahoo.com/mrss/'
|
||||
|
||||
|
|
|
@ -11,9 +11,10 @@
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.compat import string_types
|
||||
from feedgen.ext.base import BaseExtension
|
||||
from feedgen.util import ensure_format
|
||||
from feedgen.compat import string_types
|
||||
|
||||
|
||||
class PodcastExtension(BaseExtension):
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.ext.base import BaseEntryExtension
|
||||
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ http://web.resource.org/rss/1.0/modules/syndication/
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.ext.base import BaseExtension
|
||||
|
||||
SYNDICATION_NS = 'http://purl.org/rss/1.0/modules/syndication/'
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
'''
|
||||
|
||||
from lxml import etree
|
||||
from feedgen.ext.base import BaseExtension, BaseEntryExtension
|
||||
|
||||
from feedgen.ext.base import BaseEntryExtension, BaseExtension
|
||||
|
||||
TORRENT_NS = 'http://xmlns.ezrss.it/0.1/dtd/'
|
||||
|
||||
|
|
|
@ -9,16 +9,17 @@
|
|||
|
||||
'''
|
||||
|
||||
from lxml import etree
|
||||
import sys
|
||||
from datetime import datetime
|
||||
|
||||
import dateutil.parser
|
||||
import dateutil.tz
|
||||
from lxml import etree
|
||||
|
||||
import feedgen.version
|
||||
from feedgen.compat import string_types
|
||||
from feedgen.entry import FeedEntry
|
||||
from feedgen.util import ensure_format, formatRFC2822
|
||||
import feedgen.version
|
||||
import sys
|
||||
from feedgen.compat import string_types
|
||||
|
||||
|
||||
_feedgen_version = feedgen.version.version_str
|
||||
|
||||
|
|
1
setup.py
1
setup.py
|
@ -2,6 +2,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
import feedgen.version
|
||||
|
||||
packages = ['feedgen', 'feedgen/ext']
|
||||
|
|
|
@ -7,6 +7,7 @@ These are test cases for a basic entry.
|
|||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
from feedgen.feed import FeedGenerator
|
||||
|
||||
|
||||
|
|
|
@ -5,9 +5,11 @@ Tests for extensions
|
|||
"""
|
||||
|
||||
import unittest
|
||||
from feedgen.feed import FeedGenerator
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.feed import FeedGenerator
|
||||
|
||||
|
||||
class TestExtensionSyndication(unittest.TestCase):
|
||||
|
||||
|
|
|
@ -10,9 +10,11 @@ A basic feed does not contain entries so far.
|
|||
import os
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from lxml import etree
|
||||
|
||||
from feedgen.ext.dc import DcEntryExtension, DcExtension
|
||||
from feedgen.feed import FeedGenerator
|
||||
from feedgen.ext.dc import DcExtension, DcEntryExtension
|
||||
|
||||
|
||||
class TestSequenceFunctions(unittest.TestCase):
|
||||
|
|
|
@ -8,6 +8,7 @@ import os
|
|||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from feedgen import __main__
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue