Skip to content

Commit b52c791

Browse files
Fixed support for python 2.6
1 parent 4881da5 commit b52c791

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ python:
1010
install:
1111
- pip install .
1212
- pip install -r requirements-test.txt
13-
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install ordereddict; fi
1413
# command to run tests
1514
script: nosetests

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
requests==2.7.0
2+
ordereddict==1.1

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
include_package_data=True,
3636
platforms=['any'],
3737
install_requires=[
38-
"requests"
38+
"requests",
39+
"ordereddict"
3940
],
4041
classifiers=(
4142
"Development Status :: 5 - Production/Stable",

woocommerce/oauth.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
except ImportError:
2727
from urllib.parse import urlencode, quote, unquote
2828

29+
try:
30+
from collections import OrderedDict
31+
except ImportError:
32+
from ordereddict import OrderedDict
33+
2934

3035
class OAuth(object):
3136
""" API Class """

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy