Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 62bb5c6

Browse files
authored
Merge pull request #419 from bear/fix/issue418
Pass kwargs to PostUpdate() if len(tweets)==1 in PostUpdates()
2 parents b39075e + 925c49c commit 62bb5c6

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

doc/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
---------
33

4+
Version 3.2.1
5+
=============
6+
7+
* :py:func:`twitter.twitter_utils.calc_expected_status_length` should now function properly. Previously, URLs would be counted incorrectly. See `PR #416 <https://github.com/bear/python-twitter/pull/416>`_
8+
9+
* :py:func:`twitter.api.Api.PostUpdates` now passes any keyword arguments on the edge case that only one tweet was actually being posted.
10+
11+
412
Version 3.2
513
===========
614

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# The short X.Y version.
6060
version = '3.2'
6161
# The full version, including alpha/beta/rc tags.
62-
release = '3.2dev0'
62+
release = '3.2.1'
6363

6464
# The language for content autogenerated by Sphinx. Refer to documentation
6565
# for a list of supported languages.

twitter/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,11 +1551,10 @@ def PostUpdates(self,
15511551
tweets = self._TweetTextWrap(status=status, char_lim=char_limit)
15521552

15531553
if len(tweets) == 1:
1554-
results.append(self.PostUpdate(status=tweets[0]))
1554+
results.append(self.PostUpdate(status=tweets[0], **kwargs))
15551555
return results
15561556

15571557
for tweet in tweets[0:-1]:
1558-
print('tweeting', tweet)
15591558
results.append(self.PostUpdate(status=tweet + continuation, **kwargs))
15601559
results.append(self.PostUpdate(status=tweets[-1], **kwargs))
15611560

0 commit comments

Comments
 (0)