From 918c1b365fdbedef16040662df2410777241bce1 2013-07-04 14:30:07 From: Jason Grout Date: 2013-07-04 14:30:07 Subject: [PATCH] format positions are required in Python 2.6.x --- diff --git a/IPython/core/inputtransformer.py b/IPython/core/inputtransformer.py index f2ff776..b4ef3e6 100644 --- a/IPython/core/inputtransformer.py +++ b/IPython/core/inputtransformer.py @@ -71,7 +71,7 @@ class StatelessInputTransformer(InputTransformer): self.func = func def __repr__(self): - return "StatelessInputTransformer(func={!r})".format(self.func) + return "StatelessInputTransformer(func={0!r})".format(self.func) def push(self, line): """Send a line of input to the transformer, returning the @@ -90,7 +90,7 @@ class CoroutineInputTransformer(InputTransformer): next(self.coro) def __repr__(self): - return "CoroutineInputTransformer(coro={!r})".format(self.coro) + return "CoroutineInputTransformer(coro={0!r})".format(self.coro) def push(self, line): """Send a line of input to the transformer, returning the