def METHOD_NAME(self, etree):
    if 'http://' in self.info.file:
        fp = urlopen(self.info.file)
        code = fp.read()
        fp.close()
        name = self.info.file.rsplit('/',1)[1].split('?',1)[0]
        self.code = {name: code}
        if self.info.name == 'unnamed':
            self.info.name = name
    else:
        names = self._xp_names(etree)
        code = self._xp_code(etree)
        name = ''
        size = 0
        for i in list(range(len(code))):
            names[i] = str(names[i])
            if size < len(code[i]):
                size = len(code[i])
                name = names[i]
            code[i] = code[i].lstrip()
            code[i] = code[i].replace('\xa0',' ')
        self.code = dict(list(zip(names,code)))
        if self.info.name == 'unnamed':
            self.info.name = name