From: Hatem Nassrat Date: Sun, 11 Jan 2009 20:45:10 +0000 (-0400) Subject: Using source for all POST as indicated on http://groups.google.com/group/twitter... X-Git-Tag: twitter-1.0~5^2~5 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/22b472f87c821b89ba5567185561fca4663ea562?hp=4a6070c8236f2954d7a1d8f804e3e08adeb963f9 Using source for all POST as indicated on http://groups.google.com/group/twitter-development-talk/browse_thread/thread/c3b107703a183575 --- diff --git a/twitter/api.py b/twitter/api.py index d2df61b..872a974 100644 --- a/twitter/api.py +++ b/twitter/api.py @@ -44,9 +44,8 @@ class TwitterCall(object): or self.uri.endswith('create') or self.uri.endswith('destroy')): method = "POST" - - if (self.agent and self.uri.endswith('update')): - kwargs["source"] = self.agent + if (self.agent): + kwargs["source"] = self.agent encoded_kwargs = urlencode(kwargs.items()) argStr = ""