From ead3af31351c3468e27307ce1999d325d7f17ca9 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 15 Jan 2011 17:15:33 -0500 Subject: Make it easier to import OrderedDict --- sleekxmpp/thirdparty/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sleekxmpp/thirdparty') diff --git a/sleekxmpp/thirdparty/__init__.py b/sleekxmpp/thirdparty/__init__.py index e69de29b..4e9d8474 100644 --- a/sleekxmpp/thirdparty/__init__.py +++ b/sleekxmpp/thirdparty/__init__.py @@ -0,0 +1,4 @@ +try: + from ordereddict import OrderedDict +except: + from sleekxmpp.thirdparty.ordereddict import OrderedDict -- cgit v1.2.3 From 493df570353fbeff288d6ee61fb0842622443967 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 19 Jan 2011 17:49:39 -0500 Subject: Fix thirdparty imports for Python3 --- sleekxmpp/thirdparty/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/thirdparty') diff --git a/sleekxmpp/thirdparty/__init__.py b/sleekxmpp/thirdparty/__init__.py index 4e9d8474..276ac3cc 100644 --- a/sleekxmpp/thirdparty/__init__.py +++ b/sleekxmpp/thirdparty/__init__.py @@ -1,4 +1,4 @@ try: - from ordereddict import OrderedDict + from collections import OrderedDict except: from sleekxmpp.thirdparty.ordereddict import OrderedDict -- cgit v1.2.3