From a1bd6bfb856c28a492f772920662474399038863 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 30 Dec 2009 03:27:59 -0500 Subject: [PATCH] Don't auto-kill at the 140 limit, as other languages apparently treat this differently. Leave it up to the programmer to determine length issues, I guess. --- twython/core.py | 2 -- twython3k/core.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/twython/core.py b/twython/core.py index b4ca4a9..7a664c9 100644 --- a/twython/core.py +++ b/twython/core.py @@ -585,8 +585,6 @@ class setup: This parameter will be ignored if outside that range, not a number, if geo_enabled is disabled, or if there not a corresponding latitude parameter with this tweet. """ version = version or self.apiVersion - if len(list(status)) > 140: - raise TwythonError("This status message is over 140 characters. Trim it down!") try: return simplejson.load(self.opener.open("http://api.twitter.com/%d/statuses/update.json?" % version, urllib.urlencode({ "status": self.unicode2utf8(status), diff --git a/twython3k/core.py b/twython3k/core.py index 3b1542e..fb3e232 100644 --- a/twython3k/core.py +++ b/twython3k/core.py @@ -585,8 +585,6 @@ class setup: This parameter will be ignored if outside that range, not a number, if geo_enabled is disabled, or if there not a corresponding latitude parameter with this tweet. """ version = version or self.apiVersion - if len(list(status)) > 140: - raise TwythonError("This status message is over 140 characters. Trim it down!") try: return simplejson.load(self.opener.open("http://api.twitter.com/%d/statuses/update.json?" % version, urllib.parse.urlencode({ "status": self.unicode2utf8(status),