Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg committed Jul 9, 2013
1 parent 47c57f4 commit 5126f59
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Resources/Computing/BOINCComputingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def getCEStatus( self ):
try:
result = self.BOINCClient.service.getDynamicInfo( )
except:
self.log.error( 'Could not get the BONIC CE %s dynamic jobs information, commnication failed!' % self.wsdl )
return S_ERROR( 'Could not get the BONIC CE %s dynamic jobs information, commnication failed!' % self.wsdl )
self.log.error( 'Could not get the BOINC CE %s dynamic jobs information, communication failed!' % self.wsdl )
return S_ERROR( 'Could not get the BOINC CE %s dynamic jobs information, communication failed!' % self.wsdl )

if not result['ok']:
self.log.warn( 'Did not get the BONIC CE %s dynamic jobs information, the value returned is false!' % self.wsdl )
Expand Down Expand Up @@ -282,21 +282,21 @@ def _fromFileToStr(self, fileName ):
fileHander.close( )
return strFile

#####################################################################
#####################################################################
def _fromStrToFile(self, strContent, fileName ):
""" Write a string to a file
"""
try:
fileHander = open ( fileName, "w" )
strFile = fileHander.write ( strContent )
fileHandler = open ( fileName, "w" )
fileHandler.write ( strContent )
except:
self.log.verbose( "To create %s failed!" % fileName )
pass
finally:
if fileHander:
fileHander.close( )
if fileHandler:
fileHandler.close( )

#####################################################################
#####################################################################
def _deleteFile(self, fileName ):
""" delete a file
"""
Expand Down Expand Up @@ -336,8 +336,8 @@ def _deleteFile(self, fileName ):
if not jobStatus['OK']:
print jobStatus['Message']
else:
for id in jobTestList:
print 'The status of the job %s is %s' % (id, jobStatus['Value'][id])
for id_ in jobTestList:
print 'The status of the job %s is %s' % (id_, jobStatus['Value'][id_])

if test_parameter & test_getDynamic:
serverState = test_boinc.getCEStatus()
Expand Down

0 comments on commit 5126f59

Please sign in to comment.