Consistently use '{!r}' in and only in TypeError messages.

This commit is contained in:
whitequark 2018-12-15 09:31:58 +00:00
parent f9f7921959
commit 3a8685c352
3 changed files with 17 additions and 17 deletions

View file

@ -100,7 +100,7 @@ class _RHSValueCompiler(ValueTransformer):
if value.op == "m":
sel, val1, val0 = map(self, value.operands)
return lambda state: val1(state) if sel(state) else val0(state)
raise NotImplementedError("Operator '{!r}' not implemented".format(value.op)) # :nocov:
raise NotImplementedError("Operator '{}' not implemented".format(value.op)) # :nocov:
def on_Slice(self, value):
shape = value.shape()