8000 Merge remote-tracking branch 'woocommerce/master' · boostsup/wp-api-python@930ecbb · GitHub
[go: up one dir, main page]

Skip to content

Commit 930ecbb

Browse files
author
derwentx
committed
Merge remote-tracking branch 'woocommerce/master'
2 parents 1e89001 + bffe8d7 commit 930ecbb

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist/
66
*.egg-info/
77
run.py
88
run3.py
9+
*.orig

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
version=VERSION,
2626
description="A Python wrapper for the Wordpress and WooCommerce REST APIs with oAuth1a 3leg support",
2727
long_description=README,
28-
author="Claudio Sanches @ WooThemes",
28+
author="Claudio Sanches @ Automattic , forked by Derwent @ Laserphile",
2929
url="https://github.com/woocommerce/wc-api-python",
3030
license="MIT License",
3131
packages=[

wordpress/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"""
44
wordpress
55
~~~~~~~~~
6-
A Python wrapper for Wordpress REST API.
6+
A Python wrapper for Wordpress and WooCommerce REST APIs.
77
88
:copyright: (c) 2015 by WooThemes.
99
:license: MIT, see LICENSE for details.
1010
"""
1111

1212
__title__ = "wordpress"
1313
__version__ = "1.2.2"
14-
__author__ = "Claudio Sanches @ WooThemes"
14+
__author__ = "Claudio Sanches @ WooThemes, forked by Derwent"
1515
__license__ = "MIT"
1616

1717
__default_api_version__ = "wp/v2"

wordpress/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def __request(self, method, endpoint, data):
9090
)
9191

9292
assert \
93-
response.status_code in [200, 201], "API call to %s returned \nCODE: %s\n%s \nHEADERS: %s" % (
93+
response.status_code in [200, 201], \
94+
"API call to %s returned \nCODE: %s\n%s \nHEADERS: %s" % (
9495
response.request.url,
9596
str(response.status_code),
9697
UrlUtils.beautify_response(response),

0 commit comments

Comments
 (0)
0