5604e91325cfd0ccdf0da78f2f6b41296f43f5ae wong Mon Jan 9 16:16:38 2012 -0800 correct wrong type of quotes diff --git python/lib/ucscgenomics/cv.py python/lib/ucscgenomics/cv.py index 7eeb73c..f31fa4b 100644 --- python/lib/ucscgenomics/cv.py +++ python/lib/ucscgenomics/cv.py @@ -248,31 +248,31 @@ if p == 0: ra.handler(NonmatchKeyError(self, key, other)) def checkProtocols(self, ra, path): if 'protocol' in self: protocols = self['protocol'].split() for protocol in protocols: if ':' not in protocol: ra.handler(InvalidProtocolError(self, protocol)) else: p = protocol.split(':', 1)[1] if ra.protocolPath != None and not os.path.isfile(ra.protocolPath + path + p): ra.handler(InvalidProtocolError(self, protocol)) class CvError(Exception): - '''base error class for the cv.""" + '''base error class for the cv.''' def __init__(self, stanza): self.stanza = stanza self.msg = '' def __str__(self): return str('%s[%s] %s: %s' % (self.stanza.name, self.stanza['type'], self.__class__.__name__, self.msg)) class MissingKeyError(CvError): '''raised if a mandatory key is missing''' def __init__(self, stanza, key): CvError.__init__(self, stanza) self.msg = key # def __str__(self):