for action in _POST_ACTIONS:
if self.uri.endswith(action):
method = "POST"
+ if (self.agent):
+ kwargs["source"] = self.agent
break
- if (self.agent):
- kwargs["source"] = self.agent
id = kwargs.pop('id', None)
if id:
"""
if (format not in ("json", "xml")):
raise TwitterError("Unknown data format '%s'" %(format))
- TwitterCall.__init__(self, email, password, format, domain)
+ TwitterCall.__init__(self, email, password, format, domain, "", agent)
__all__ = ["Twitter", "TwitterError"]
from api import Twitter, TwitterError
-AGENT_STR = "Twitter Command-line Tool"
+# Wait on Twitter people to provide this string...
+AGENT_STR = None
options = {
'email': None,