Skip to content

Commit 7873912

Browse files
committed
python 2 compat urlencode
1 parent e3f1ffd commit 7873912

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

woocommerce/api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111

1212
from requests import request
1313
from json import dumps as jsonencode
14-
from urllib.parse import urlencode
1514
from woocommerce.oauth import OAuth
1615

16+
try:
17+
from urllib.parse import urlencode
18+
except ImportError:
19+
from urllib import urlencode
20+
1721

1822
class API(object):
1923
""" 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