|
51 | 51 |
|
52 | 52 | def discover(source, activity, fetch_hfeed=True, include_redirect_sources=True, |
53 | 53 | already_fetched_hfeeds=None): |
54 | | - """Augments the standard original post discovery algorithm with a |
| 54 | + r"""Augments the standard original post discovery algorithm with a |
55 | 55 | reverse lookup that supports posts without a backlink or citation. |
56 | 56 |
|
57 | 57 | If ``fetch_hfeed`` is False, then we will check the db for previously found |
@@ -171,7 +171,7 @@ def resolve(urls): |
171 | 171 |
|
172 | 172 |
|
173 | 173 | def refetch(source): |
174 | | - """Refetch the author's URLs and look for new or updated syndication |
| 174 | + r"""Refetch the author's URLs and look for new or updated syndication |
175 | 175 | links that might not have been there the first time we looked. |
176 | 176 |
|
177 | 177 | Args: |
@@ -277,7 +277,7 @@ def _posse_post_discovery(source, activity, syndication_url, fetch_hfeed, |
277 | 277 |
|
278 | 278 |
|
279 | 279 | def _process_author(source, author_url, refetch=False, store_blanks=True): |
280 | | - """Fetch the author's domain URL, and look for syndicated posts. |
| 280 | + r"""Fetch the author's domain URL, and look for syndicated posts. |
281 | 281 |
|
282 | 282 | Args: |
283 | 283 | source (models.Source) |
@@ -404,7 +404,7 @@ def updated_or_published(item): |
404 | 404 |
|
405 | 405 |
|
406 | 406 | def _merge_hfeeds(feed1, feed2): |
407 | | - """Merge items from two ``h-feeds`` into a composite feed. |
| 407 | + r"""Merge items from two ``h-feeds`` into a composite feed. |
408 | 408 |
|
409 | 409 | Skips items in ``feed2`` that are already represented in ``feed1``\, based on |
410 | 410 | the ``url`` property. |
@@ -455,7 +455,7 @@ def _find_feed_items(mf2): |
455 | 455 |
|
456 | 456 | def process_entry(source, permalink, feed_entry, refetch, preexisting, |
457 | 457 | store_blanks=True): |
458 | | - """Fetch and process an h-entry and save a new :class:`models.SyndicatedPost`. |
| 458 | + r"""Fetch and process an h-entry and save a new :class:`models.SyndicatedPost`. |
459 | 459 |
|
460 | 460 | Args: |
461 | 461 | source (models.Source) |
@@ -560,7 +560,7 @@ def process_entry(source, permalink, feed_entry, refetch, preexisting, |
560 | 560 |
|
561 | 561 | def _process_syndication_urls(source, permalink, syndication_urls, |
562 | 562 | preexisting): |
563 | | - """Process a list of syndication URLs looking for one that matches the |
| 563 | + r"""Process a list of syndication URLs looking for one that matches the |
564 | 564 | current source. If one is found, stores a new :class:`models.SyndicatedPost` |
565 | 565 | in the db. |
566 | 566 |
|
|
0 commit comments