search for: is_xml

Displaying 1 result from an estimated 1 matches for "is_xml".

Did you mean: in_xml
2008 Sep 18
1
答复: RE: 答复: RE:
...> if not p.startswith(''/''): > p = os.path.join(os.path.curdir, p) > if os.path.exists(p): > self.info(''Using config file "%s".'' % p) > > f = open(p) > is_xml = (f.read(1) == ''<'') > f.close() > > if is_xml: > raise XMLFileError(p) > > self.load(p, help) > break > else: > raise OptionError(''Unable to ope...