fix more #pylint issues
This commit is contained in:
parent
1929eb320f
commit
f68099f584
4 changed files with 5 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ class HandlerAccess(object):
|
|||
return self.__reg.get(__name)(*args, **kwargs)
|
||||
|
||||
def get(self, name):
|
||||
return self.__Reg.get(name)
|
||||
return self.__reg.get(name)
|
||||
|
||||
|
||||
class ModXMLRPCRequestHandler(object):
|
||||
|
|
|
|||
|
|
@ -2037,10 +2037,10 @@ class ClientSession(object):
|
|||
chk_opts['verify'] = 'adler32'
|
||||
result = self._callMethod('checkUpload', (path, name), chk_opts)
|
||||
if int(result['size']) != ofs:
|
||||
raise koji.GenericError, "Uploaded file is wrong length: %s/%s, %s != %s" \
|
||||
raise GenericError, "Uploaded file is wrong length: %s/%s, %s != %s" \
|
||||
% (path, name, result['sumlength'], ofs)
|
||||
if problems and result['hexdigest'] != full_chksum.hexdigest():
|
||||
raise koji.GenericError, "Uploaded file has wrong checksum: %s/%s, %s != %s" \
|
||||
raise GenericError, "Uploaded file has wrong checksum: %s/%s, %s != %s" \
|
||||
% (path, name, result['hexdigest'], full_chksum.hexdigest())
|
||||
self.logger.debug("Fast upload: %s complete. %i bytes in %.1f seconds", localfile, size, t2)
|
||||
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ class SCM(object):
|
|||
|
||||
# check for validity: params should be empty, query may be empty, everything else should be populated
|
||||
if params :
|
||||
raise koji.GenericError, 'Unable to parse SCM URL: %s . Param element %s should be empty.' % (self.url,param)
|
||||
raise koji.GenericError, 'Unable to parse SCM URL: %s . Params element %s should be empty.' % (self.url, params)
|
||||
if not scheme :
|
||||
raise koji.GenericError, 'Unable to parse SCM URL: %s . Could not find the scheme element.' % self.url
|
||||
if not netloc :
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ class WSGIWrapper(object):
|
|||
for chunk in result:
|
||||
if chunk and not self.set_headers:
|
||||
raise RuntimeError, "write() called before start_response()"
|
||||
write(data)
|
||||
write(chunk)
|
||||
if not req.bytes_sent:
|
||||
#application sent nothing back
|
||||
req.set_content_length(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue