'Given a file, this will return all potenial APT source URIs.'

def FindPotentialURIs(self, file_obj):

    rfc822_format = ''
    uris_to_parse = []
    for line in file_obj.read().splitlines(True):
        m = re.search('^\\s*deb(?:-\\S+)?(?:\\s+\\[[^\\]]*\\])*\\s+(\\S+)(?:\\s|$)', line)
        if m:
            uris_to_parse.append(m.group(1))
        else:
            rfc822_format += line
    uris_to_parse.extend(self.ParseURIFromKeyValues(rfc822_format, ':', 'uri'))
    return uris_to_parse
