Remove six dependency

This commit is contained in:
IGARASHI Masanao 2015-04-24 21:43:29 +09:00
parent bf8d0729f6
commit 206e72cc23
4 changed files with 10 additions and 3 deletions

7
feedgen/compat.py Normal file
View file

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

View file

@ -13,7 +13,7 @@ from datetime import datetime
import dateutil.parser
import dateutil.tz
from feedgen.util import ensure_format
from six import string_types
from feedgen.compat import string_types
class FeedEntry(object):

View file

@ -17,7 +17,7 @@ from feedgen.entry import FeedEntry
from feedgen.util import ensure_format
import feedgen.version
import sys
from six import string_types
from feedgen.compat import string_types
_feedgen_version = feedgen.version.version_str

View file

@ -14,7 +14,7 @@ setup(
url = 'http://lkiesow.github.io/python-feedgen',
keywords = ['feed','ATOM','RSS','podcast'],
license = 'FreeBSD and LGPLv3+',
install_requires = ['lxml', 'dateutils', 'six'],
install_requires = ['lxml', 'dateutils'],
classifiers = [
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',