Browse Source

Use isort to sort import

…so that they all have the same structure.
bandit
Lars Kiesow 5 years ago
parent
commit
9026316391
No known key found for this signature in database GPG Key ID: 5DAFE8D9C823CE73
  1. 3
      feedgen/__main__.py
  2. 1
      feedgen/compat.py
  3. 6
      feedgen/entry.py
  4. 1
      feedgen/ext/dc.py
  5. 3
      feedgen/ext/media.py
  6. 3
      feedgen/ext/podcast.py
  7. 1
      feedgen/ext/podcast_entry.py
  8. 1
      feedgen/ext/syndication.py
  9. 3
      feedgen/ext/torrent.py
  10. 11
      feedgen/feed.py
  11. 1
      setup.py
  12. 1
      tests/test_entry.py
  13. 4
      tests/test_extension.py
  14. 4
      tests/test_feed.py
  15. 1
      tests/test_main.py

3
feedgen/__main__.py

@ -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
feedgen/compat.py

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import sys
if sys.version_info[0] >= 3:
string_types = str
else:

6
feedgen/entry.py

@ -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):

1
feedgen/ext/dc.py

@ -14,6 +14,7 @@
'''
from lxml import etree
from feedgen.ext.base import BaseExtension

3
feedgen/ext/media.py

@ -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/'

3
feedgen/ext/podcast.py

@ -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):

1
feedgen/ext/podcast_entry.py

@ -11,6 +11,7 @@
'''
from lxml import etree
from feedgen.ext.base import BaseEntryExtension

1
feedgen/ext/syndication.py

@ -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/'

3
feedgen/ext/torrent.py

@ -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/'

11
feedgen/feed.py

@ -9,16 +9,17 @@
'''
from lxml import etree
import sys
from datetime import datetime
import dateutil.parser
import dateutil.tz
from feedgen.entry import FeedEntry
from feedgen.util import ensure_format, formatRFC2822
from lxml import etree
import feedgen.version
import sys
from feedgen.compat import string_types
from feedgen.entry import FeedEntry
from feedgen.util import ensure_format, formatRFC2822
_feedgen_version = feedgen.version.version_str

1
setup.py

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from setuptools import setup
import feedgen.version
packages = ['feedgen', 'feedgen/ext']

1
tests/test_entry.py

@ -7,6 +7,7 @@ These are test cases for a basic entry.
"""
import unittest
from feedgen.feed import FeedGenerator

4
tests/test_extension.py

@ -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):

4
tests/test_feed.py

@ -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):

1
tests/test_main.py

@ -8,6 +8,7 @@ import os
import sys
import tempfile
import unittest
from feedgen import __main__

Loading…
Cancel
Save