# HG changeset patch # User dclinton@b35c0ba3-1128-0410-9219-0b39014e361d # Date 1249411800 0 # Branch dclinton # Node ID ad8837d19355b6b5b2c42f84c3d1e1426083a571 # Parent c05534ecbc504595d1beab06ced7c6ebad9bae70 Change check for int to check for long in GetUserTimeline diff -r c05534ecbc504595d1beab06ced7c6ebad9bae70 -r ad8837d19355b6b5b2c42f84c3d1e1426083a571 twitter.py --- a/twitter.py Thu Jul 30 14:57:33 2009 +0000 +++ b/twitter.py Tue Aug 04 18:50:00 2009 +0000 @@ -332,7 +332,7 @@ password: The password for the twitter account. [optional] input_encoding: The encoding used to encode input strings. [optional] request_header: A dictionary of additional HTTP request headers. [optional] - cache: + cache: The cache instance to use. Defaults to DEFAULT_CACHE. Use None to disable caching. [optional] ''' @@ -471,13 +471,13 @@ if since_id: try: - parameters['since_id'] = int(since_id) + parameters['since_id'] = long(since_id) except: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = int(max_id) + parameters['max_id'] = long(max_id) except: raise TwitterError("max_id must be an integer") @@ -570,7 +570,7 @@ status_length = len(status) if status_length > CHARACTER_LIMIT: raise TwitterError("Text must be less than or equal to %d characters. " - "Was %d. Consider using PostUpdates." % + "Was %d. Consider using PostUpdates." % (CHARACTER_LIMIT, status_length)) data = {'status': status} @@ -940,7 +940,7 @@ def VerifyCredentials(self): '''Returns a twitter.User instance if the authenticating user is valid. - Returns: + Returns: A twitter.User instance representing that user if the credentials are valid, None otherwise. '''