webcache/memento.py
def _parselinks(self, data):
        """
        Parse links from RFC 7089, returns list of links
        """
        res = []
        for d in data.split('\n'):
            if d != "":
                regex = self.linkre.match(d)
                if regex is not None:
                    new = {
                        'url': regex.group('url'),
                        'type': regex.group('type')
                    }
                    for i in ['from', 'until', 'date']:
                        if regex.group(i) is not None:
                            if i in regex.groupdict():
                                new[i] = parse(regex.group(i))
                    res.append(new)
        return res

        Parse links from RFC 7089, returns list of links
        
Parse links from RFC 7089, returns list of links
Parse links from RFC 7089 returns list of links
def _parselinks(self, data):
        res = []
        for d in data.split('\n'):
            if d != "":
                regex = self.linkre.match(d)
                if regex is not None:
                    new = {
                        'url': regex.group('url'),
                        'type': regex.group('type')
                    }
                    for i in ['from', 'until', 'date']:
                        if regex.group(i) is not None:
                            if i in regex.groupdict():
                                new[i] = parse(regex.group(i))
                    res.append(new)
        return res
def _parselinks ( self , data ) : res = [ ] for d in data . split ( '\n' ) : if d != "" : regex = self . linkre . match ( d ) if regex is not None : new = { 'url' : regex . group ( 'url' ) , 'type' : regex . group ( 'type' ) } for i in [ 'from' , 'until' , 'date' ] : if regex . group ( i ) is not None : if i in regex . groupdict ( ) : new [ i ] = parse ( regex . group ( i ) ) res . append ( new ) return res
Parse links from RFC 7089, returns list of links
Parse links from RFC 7089 returns list of links
"""
        Parse links from RFC 7089, returns list of links
        """
self
data