def error(self, fail=True, action='<STR_LIT>'):
e = '<STR_LIT>'<EOL>if action:<EOL><INDENT>e = '<STR_LIT>' % (action, e)<EOL><DEDENT>log.error(e)<EOL>if fail:<EOL><INDENT>raise IOError(e)<EOL><DEDENT>
SHOULD BE PRIVATE METHOD