Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Version 2.20190710.1 (2019-07-10)

* **Bug fix**: line 100 of `rest.py` to use `in` for key search.

## Version 2.20190710.0 (2019-07-10)

* **Retired functionality** — The `CatalogItem.image_url` field (deprecated under `Square-Version` YYYYMMDD) is retired and no longer included in Connect SDKs.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages

NAME = "squareconnect"
VERSION = "2.20190710.0"
VERSION = "2.20190710.1"



Expand Down
2 changes: 1 addition & 1 deletion squareconnect/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Square-Connect-Python/2.20190710.0'
self.user_agent = 'Square-Connect-Python/2.20190710.1'

@property
def user_agent(self):
Expand Down
2 changes: 1 addition & 1 deletion squareconnect/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.0\n"\
"SDK Package Version: 2.20190710.0".\
"SDK Package Version: 2.20190710.1".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 1 addition & 1 deletion squareconnect/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def getbatch_token(self):
next_url = match.group(1)
parsed_url = urlparse(next_url)
parameters = parse_qs(parsed_url.query)
if parameters.has_key('batch_token'):
if 'batch_token' in parameters:
return parameters['batch_token'][0]
return None

Expand Down