def get_str(self, printer, max_lines):
	def f():
	    _hiding_tag_ = printer._hiding_tag_
	    start_lineno = printer._oh_get_start_lineno()
	    ob = self.mod.output_buffer()
	    it = self.lines_from(start_lineno)
	    numlines = 0
	    lineno = start_lineno
	    for line in it:
		if (numlines >= max_lines and
		    ((not self.stop_only_when_told) or self.stop_linenos.get(1-lineno))) :
		    try:
			self.line_at(lineno+1)
		    except IndexError:
			print >>ob, line
			lineno += 1
			break
		    else:
			print >>ob, self.get_more_msg(start_lineno, lineno-1)
			break
		numlines += 1
		print >>ob, line
		lineno += 1
	    printer._oh_next_lineno = lineno
	    return ob.getvalue().rstrip()

	return printer.mod._parent.View.enter(lambda: f())
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/etc/OutputHandling.py/Printer.get_str/swapped operands of `-`