From e1bdbc0042dd7b350cdaac02cae9501617c5ad41 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Mon, 29 Apr 2019 08:59:53 +0200 Subject: [PATCH] repr -> get_shortish_repr --- pysnooper/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysnooper/variables.py b/pysnooper/variables.py index 00f67f4..b0486bb 100644 --- a/pysnooper/variables.py +++ b/pysnooper/variables.py @@ -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]