示例#1
0
def get_comps():
    """
    parse and return comps object
    """
    fd = urllib.urlopen(settings.COMPS_URL)
    c = Comps()
    c.add(fd)
    return c
示例#2
0
文件: parse.py 项目: shreyankg/Dorrie
def get_comps():
    """
    parse and return comps object
    """
    fd = urllib.urlopen(settings.COMPS_URL)
    c = Comps()
    c.add(fd)
    return c
示例#3
0
def get_comps():
    """
    parse and return comps object
    """
    # Eitan self-note:
    # Grabs the xml file from comps repository. Check settings for location.
    fd = urllib.urlopen(settings.COMPS_URL)
    c = Comps()
    c.add(fd)
    return c