code: def __edit_line(line, code, code_obj):  # pylint: disable=R0201
          
          try:
              # pylint: disable=eval-used
              result = eval(code_obj, globals(), locals())
          except TypeError as ex:
              log.error("failed to execute %s: %s", code, ex)
              raise
          if result is None:
              log.error("cannot process line '%s' with %s", line, code)
              raise RuntimeError('failed to process line')
          elif isinstance(result, list) or isinstance(result, tuple):
              line = unicode(' '.join([unicode(res_element)
                                       for res_element in result]))
          else:
              line = unicode(result)
          return line
docs: Edit a line with one code object built in the ctor.