Consistently use '{!r}' in and only in TypeError messages.
This commit is contained in:
parent
f9f7921959
commit
3a8685c352
3 changed files with 17 additions and 17 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue