Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use OrderedDict where available instead #157

Merged
merged 1 commit into from Oct 7, 2014

Conversation

w0rp
Copy link
Contributor

@w0rp w0rp commented Oct 7, 2014

I was just updating a project to Django 1.7, and the tests were spewing out deprecation warnings for using SortedDict. This patch uses OrderedDict from the standard collections module when you are on Python 2.7 or above, and falls back on the deprecated Django implementation when using Python 2.6 or lower.

…Django 1.7. Fall back on SortedDict if we are aren't on Python 2.7 or higher.
bmihelac added a commit that referenced this pull request Oct 7, 2014
Use OrderedDict where available instead
@bmihelac bmihelac merged commit 33aac39 into django-import-export:master Oct 7, 2014
@bmihelac
Copy link
Member

bmihelac commented Oct 7, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants