twython/twython
Phil Gyford 73982c78f4 Fix links in tweets when there's a prefix
If a tweet had a prefix (@names that it was replying to) then the length
of these is counted in the indices that show the locations of entities
within the tweet. But we were applying those indices to the 'display'
part of the tweet that doesn't include the prefix.

So, if the tweet was:

    @bob Please meet @bill

and the prefix was `@bob `, then the indices for linking `@bill`
are something like `17,21`. But we were applying the link around
`@bill` to the display text part of the tweet, which is:

    Please meet @bill

And so the indices no longer lined up with `@bill`.

Now they do, and the same for URLs and hashtags.
2018-01-06 19:03:17 +00:00
..
streaming - Cleaned up some docstrings with Sphinx markup and param names. 2017-11-06 10:35:26 -05:00
__init__.py Version 3.6.0 and update travis python versions 2017-08-23 11:29:20 -04:00
advisory.py first pep8 work 2014-07-24 04:24:51 +00:00
api.py Fix links in tweets when there's a prefix 2018-01-06 19:03:17 +00:00
compat.py Remove sphinx themes from requirements, remove Import error 2013-06-11 19:11:52 -04:00
endpoints.py - Cleaned up some docstrings with Sphinx markup and param names. 2017-11-06 10:35:26 -05:00
exceptions.py Adds retry_after attribute to TwythonRateLimitError 2014-01-12 15:21:27 -08:00
helpers.py first pep8 work 2014-07-24 04:24:51 +00:00