rhec/pyelasticsearch — pull request #21 by erikrose (2012-08-30 22:38:41+00:00)
Title: Use explicit repr() calls when not already passing a tuple to the % oper...

...ator.

When a string takes a single substitution, like `'%r' % smoo`, it throws a "TypeError: not all arguments converted during string formatting" in the case that smoo is a tuple. This could easily happen in these spots here, since we're reporting on mysterious, bad input that could be anything.