MCPcopy Index your code
hub / github.com/quentinhardy/odat / cleanError

Method cleanError

OracleDatabase.py:353–357  ·  view source on GitHub ↗

Replace \n and \t by escape

(self,errorMsg)

Source from the content-addressed store, hash-verified

351 return ProgressBar(widgets=['', Percentage(), ' ', Bar(),' ', ETA(), ' ',''], maxval=maxvalue).start()
352
353 def cleanError(self,errorMsg):
354 '''
355 Replace \n and \t by escape
356 '''
357 return str(errorMsg).replace('\n',' ').replace('\t',' ')
358
359 def writeFile(self,nameFile, data, mode='w'):
360 '''

Callers 15

connectionMethod · 0.95
__execThisQuery__Method · 0.95
__execProc__Method · 0.95
writeFileMethod · 0.95
hasThisRoleMethod · 0.95
hasThisPrivilegeMethod · 0.95
dropStoredProcedureMethod · 0.95
dropStoredFunctionMethod · 0.95
dropIndexMethod · 0.95
dropTriggerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected