From 3426714ffe7b0b4991bc6efd3538a7a26b469e78 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 24 Nov 2013 17:39:28 +0100 Subject: [PATCH] Fix OrderedDict PyPi package support for 2.6 --- pwhois | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pwhois b/pwhois index e1aae68..0909762 100755 --- a/pwhois +++ b/pwhois @@ -1,7 +1,10 @@ #!/usr/bin/env python2 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.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 (--).") diff --git a/setup.py b/setup.py index 8b7204d..a31d6cc 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup 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.', author='Sven Slootweg', author_email='pythonwhois@cryto.net',