Changeset 1453:5a38aa617aeb
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1452
|
r1453
|
|
| 418 | 418 | @set_index |
| 419 | 419 | 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 | |
| 421 | 424 | urls = self.get_urls(index) |
| 422 | 425 | if not urls: |
| 423 | 426 | 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) |
| 425 | 428 | url = urls[0] |
| 426 | | output.Speak(_("Opening URL: %s" % url)) |
| | 429 | output.Speak(_("Opening URL: %s" % url), True) |
| 427 | 430 | logging.debug("Opening URL: %s" % url) |
| 428 | 431 | webbrowser.open_new_tab(url) |