Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Release 2.20190710.1 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssung88 authored Jul 10, 2019
1 parent 925abe4 commit 020bc44
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
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

0 comments on commit 020bc44

Please sign in to comment.