askhist_search.py
def check_redirect(reddit, comment):
    """Given a comment, find if it contains links to another post
    If it does, return the title and shortlink for those linked posts"""
    body = comment.body
    matches = reddit_url.findall(body)
    if matches is not None:
        links = []
        matches = [match.strip("()") for match in matches]
        for match in matches:
            post = models.Submission(reddit, url=match)
            links.append((post.title, post.shortlink))
        return links
Given a comment, find if it contains links to another post
    If it does, return the title and shortlink for those linked posts
Given a comment, find if it contains links to another post
If it does, return the title and shortlink for those linked posts
Given a comment find if it contains links to another post If it does return the title and shortlink for those linked posts
def check_redirect(reddit, comment):
    body = comment.body
    matches = reddit_url.findall(body)
    if matches is not None:
        links = []
        matches = [match.strip("()") for match in matches]
        for match in matches:
            post = models.Submission(reddit, url=match)
            links.append((post.title, post.shortlink))
        return links
def check_redirect ( reddit , comment ) : body = comment . body matches = reddit_url . findall ( body ) if matches is not None : links = [ ] matches = [ match . strip ( "()" ) for match in matches ] for match in matches : post = models . Submission ( reddit , url = match ) links . append ( ( post . title , post . shortlink ) ) return links
Given a comment, find if it contains links to another post
If it does, return the title and shortlink for those linked posts
Given a comment find if it contains links to another post If it does return the title and shortlink for those linked posts
"""Given a comment, find if it contains links to another post
    If it does, return the title and shortlink for those linked posts"""
reddit
comment