repr -> get_shortish_repr

This commit is contained in:
Alex Hall 2019-04-29 08:59:53 +02:00 committed by Ram Rachum
parent d09b348d96
commit e1bdbc0042

View file

@ -74,7 +74,7 @@ class Keys(CommonVariable):
return main_value.keys()
def _format_key(self, key):
return '[{!r}]'.format(key)
return '[{}]'.format(get_shortish_repr(key))
def _get_value(self, main_value, key):
return main_value[key]