Skip to content

Commit 0beae8d

Browse files
author
Christopher Merrick
committed
change package name to stitchclient
1 parent f8615d5 commit 0beae8d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from setuptools import setup, find_packages
44
import subprocess
55

6-
setup(name="python-stitch-client",
6+
setup(name="stitchclient",
77
version="0.4.0",
88
description="Send records to the Stitch API from Python",
99
author="Stitch",
10-
url="https://github.com/stitchdata/python-stitch-client"
10+
url="https://github.com/stitchdata/python-stitch-client",
1111
packages=find_packages(),
1212
install_requires=["transit-python"])
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ def push(self, message, callback_arg = None):
102102
with StringIO() as s:
103103
writer = Writer(s, "json")
104104
writer.write(message)
105-
if callback_arg is not None:
106-
self._buffer.put(s.getvalue(), callback_arg)
107-
else:
108-
v = s.getvalue()
109-
self._buffer.put(v, v)
105+
self._buffer.put(s.getvalue(), callback_arg)
110106

111107
batch = self._buffer.take(self.batch_size_bytes, self.batch_delay_millis)
112108
if batch is not None:

0 commit comments

Comments
 (0)