Changeset 1453:5a38aa617aeb

Show
Ignore:
Timestamp:
07/18/10 14:33:09 (7 weeks ago)
Author:
AKJ <me@…>
Branch:
default
Children:
1458:37b0be11c303, 1459:c30843f6ceca, 1494:62a161684ed5
Message:

Fixed docstring errors on interact method in Twitter. Correctly closes #176.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/session/twitter/buffers/main.py

    r1452 r1453  
    418418 @set_index 
    419419 def interact (self, index=None): 
    420  """Opens the first URL in a Twitter post. Currently does not work if the only URL is a Twitter username.""" 
     420  """Opens the first URL in a Twitter post. Currently does not work if the only URL is a Twitter username. 
     421 
     422""" 
     423 
    421424  urls = self.get_urls(index) 
    422425  if not urls: 
    423426   logging.debug("No web addresses or usernames in current item.") 
    424    return output.Speak(_("No URLs detected in current item."), 1) 
     427   return output.Speak(_("No URLs detected in current item."), True) 
    425428  url = urls[0] 
    426   output.Speak(_("Opening URL: %s" % url)) 
     429  output.Speak(_("Opening URL: %s" % url), True) 
    427430  logging.debug("Opening URL: %s" % url) 
    428431  webbrowser.open_new_tab(url)