def _load(self, location):
cachedir = self._cachedir<EOL>if not os.path.isdir(cachedir): os.mkdir(cachedir)<EOL>file = os.path.join(cachedir, '<STR_LIT>')<EOL>section = '<STR_LIT>'<EOL>cp = ConfigParser()<EOL>try:<EOL><INDENT>cp.readfp(open(file, '<STR_LIT:r>'))<EOL><DEDENT>except IOError:<EOL><INDENT>del cp;  cp = None<EOL><DEDENT>option = location.replace('<STR_LIT::>', '<STR_LIT:->') <EOL>if (not self._force and cp is not None and cp.has_section(section) and <EOL>cp.has_option(section, option)):<EOL><INDENT>types = cp.get(section, option)<EOL><DEDENT>else:<EOL><INDENT>if not self._pyclass:<EOL><INDENT>containers.ContainerBase.func_aname = lambda instnc,n: str(n)<EOL><DEDENT>args = ['<STR_LIT>', cachedir, location]<EOL>if self._lazy: args.insert(<NUM_LIT:0>, '<STR_LIT>')<EOL>if self._pyclass: args.insert(<NUM_LIT:0>, '<STR_LIT>')<EOL>files = commands.wsdl2py(args)<EOL>if cp is None: cp = ConfigParser()<EOL>if not cp.has_section(section): cp.add_section(section)<EOL>types = [f for f in files if f.endswith('<STR_LIT>')][<NUM_LIT:0>]<EOL>cp.set(section, option, types)<EOL>cp.write(open(file, '<STR_LIT:w>'))<EOL><DEDENT>if os.path.abspath(cachedir) not in sys.path:<EOL><INDENT>sys.path.append(os.path.abspath(cachedir))<EOL><DEDENT>mod = os.path.split(types)[-<NUM_LIT:1>].rstrip('<STR_LIT>')<EOL>return __import__(mod)<EOL>
location -- URL or file location
isxsd -- is this a xsd file?