Fix OrderedDict PyPi package support for 2.6

master
Sven Slootweg 11 years ago
parent 47d486f33e
commit 3426714ffe

@ -1,7 +1,10 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
import argparse, pythonwhois, json, datetime import argparse, pythonwhois, json, datetime
from collections import OrderedDict try:
from collections import OrderedDict
except ImportError, e:
from ordereddict import OrderedDict
parser = argparse.ArgumentParser(description="Retrieves and parses WHOIS data for a domain name.") parser = argparse.ArgumentParser(description="Retrieves and parses WHOIS data for a domain name.")
parser.add_argument("-r", "--raw", action="store_true", help="Outputs raw WHOIS data and doesn't attempt to parse it. Segments are separated by a double-dash (--).") parser.add_argument("-r", "--raw", action="store_true", help="Outputs raw WHOIS data and doesn't attempt to parse it. Segments are separated by a double-dash (--).")

@ -1,7 +1,7 @@
from setuptools import setup from setuptools import setup
setup(name='pythonwhois', setup(name='pythonwhois',
version='2.0.1', version='2.0.2',
description='Module for retrieving and parsing the WHOIS data for a domain. Supports most domains. No dependencies.', description='Module for retrieving and parsing the WHOIS data for a domain. Supports most domains. No dependencies.',
author='Sven Slootweg', author='Sven Slootweg',
author_email='pythonwhois@cryto.net', author_email='pythonwhois@cryto.net',

Loading…
Cancel
Save