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

Commit 020bc44

Browse files
authored
Release 2.20190710.1 (#101)
1 parent 925abe4 commit 020bc44

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## Version 2.20190710.1 (2019-07-10)
4+
5+
* **Bug fix**: line 100 of `rest.py` to use `in` for key search.
6+
37
## Version 2.20190710.0 (2019-07-10)
48

59
* **Retired functionality** — The `CatalogItem.image_url` field (deprecated under `Square-Version` YYYYMMDD) is retired and no longer included in Connect SDKs.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "squareconnect"
7-
VERSION = "2.20190710.0"
7+
VERSION = "2.20190710.1"
88

99

1010

squareconnect/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
7575
self.default_headers[header_name] = header_value
7676
self.cookie = cookie
7777
# Set default User-Agent.
78-
self.user_agent = 'Square-Connect-Python/2.20190710.0'
78+
self.user_agent = 'Square-Connect-Python/2.20190710.1'
7979

8080
@property
8181
def user_agent(self):

squareconnect/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,5 @@ def to_debug_report(self):
229229
"OS: {env}\n"\
230230
"Python Version: {pyversion}\n"\
231231
"Version of the API: 2.0\n"\
232-
"SDK Package Version: 2.20190710.0".\
232+
"SDK Package Version: 2.20190710.1".\
233233
format(env=sys.platform, pyversion=sys.version)

squareconnect/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def getbatch_token(self):
9898
next_url = match.group(1)
9999
parsed_url = urlparse(next_url)
100100
parameters = parse_qs(parsed_url.query)
101-
if parameters.has_key('batch_token'):
101+
if 'batch_token' in parameters:
102102
return parameters['batch_token'][0]
103103
return None
104104

0 commit comments

Comments
 (0)