Twitter: tweet_or_retweet_text -> _return_tweet_or_retweet_text
This commit is contained in:
		
							parent
							
								
									7c05f60ffd
								
							
						
					
					
						commit
						89905ac771
					
				| @ -62,7 +62,7 @@ class Twitter(Module): | |||||||
|             status = match.group(1) |             status = match.group(1) | ||||||
|             try: |             try: | ||||||
|                 tweet = self.twit.GetStatus(status) |                 tweet = self.twit.GetStatus(status) | ||||||
|                 return self.tweet_or_retweet_text(tweet=tweet, print_source=True) |                 return self._return_tweet_or_retweet_text(tweet=tweet, print_source=True) | ||||||
|             except twitter.TwitterError as e: |             except twitter.TwitterError as e: | ||||||
|                 return 'Couldn\'t obtain status: ' + str(e) |                 return 'Couldn\'t obtain status: ' + str(e) | ||||||
| 
 | 
 | ||||||
| @ -83,7 +83,7 @@ class Twitter(Module): | |||||||
|                 tweets = self.twit.GetUserTimeline(screen_name=user, count=count, include_rts=True) |                 tweets = self.twit.GetUserTimeline(screen_name=user, count=count, include_rts=True) | ||||||
|                 if tweets: |                 if tweets: | ||||||
|                     tweet = tweets[-1*index] |                     tweet = tweets[-1*index] | ||||||
|                     return self.tweet_or_retweet_text(tweet=tweet) |                     return self._return_tweet_or_retweet_text(tweet=tweet) | ||||||
|             except twitter.TwitterError as e: |             except twitter.TwitterError as e: | ||||||
|                 return 'Couldn\'t obtain status: ' + str(e) |                 return 'Couldn\'t obtain status: ' + str(e) | ||||||
| 
 | 
 | ||||||
| @ -133,7 +133,7 @@ class Twitter(Module): | |||||||
|             self.authed = True |             self.authed = True | ||||||
|             return 'The bot is now logged in.' |             return 'The bot is now logged in.' | ||||||
| 
 | 
 | ||||||
|     def tweet_or_retweet_text(self, tweet, print_source=False): |     def _return_tweet_or_retweet_text(self, tweet, print_source=False): | ||||||
|         """ |         """ | ||||||
|         Return a string of the author and text body of a status, |         Return a string of the author and text body of a status, | ||||||
|         accounting for whether or not the fetched status is a |         accounting for whether or not the fetched status is a | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user