File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 8
8
msgstr ""
9
9
"Project-Id-Version : PACKAGE VERSION\n "
10
10
"Report-Msgid-Bugs-To : \n "
11
- "POT-Creation-Date : 2020-12-23 23:04-0500 \n "
11
+ "POT-Creation-Date : 2020-12-30 17:42-0600 \n "
12
12
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
14
14
"
Language-Team :
LANGUAGE <[email protected] >\n "
@@ -44,6 +44,10 @@ msgstr ""
44
44
msgid " File \" %q\" , line %d"
45
45
msgstr ""
46
46
47
+ #: py/builtinhelp.c
48
+ msgid " is of type %q\n"
49
+ msgstr ""
50
+
47
51
#: main.c
48
52
msgid " output:\n"
49
53
msgstr ""
@@ -3193,6 +3197,10 @@ msgstr ""
3193
3197
msgid "number of points must be at least 2"
3194
3198
msgstr ""
3195
3199
3200
+ #: py/builtinhelp.c
3201
+ msgid "object "
3202
+ msgstr ""
3203
+
3196
3204
#: py/obj.c
3197
3205
msgid "object '%q' is not a tuple or list"
3198
3206
msgstr ""
Original file line number Diff line number Diff line change @@ -152,9 +152,18 @@ STATIC void mp_help_print_obj(const mp_obj_t obj) {
152
152
mp_obj_type_t * type = mp_obj_get_type (obj );
153
153
154
154
// try to print something sensible about the given object
155
- mp_print_str (MP_PYTHON_PRINTER , "object " );
155
+ const compressed_string_t * compressed = translate ("object " );
156
+ char decompressed_object [decompress_length (compressed )];
157
+ decompress (compressed , decompressed_object );
158
+
159
+ mp_print_str (MP_PYTHON_PRINTER , decompressed_object );
156
160
mp_obj_print (obj , PRINT_STR );
157
- mp_printf (MP_PYTHON_PRINTER , " is of type %q\n" , type -> name );
161
+
162
+ compressed = translate (" is of type %q\n" );
163
+ char decompressed_typestring [decompress_length (compressed )];
164
+ decompress (compressed , decompressed_typestring );
165
+
166
+ mp_printf (MP_PYTHON_PRINTER , decompressed_typestring , type -> name );
158
167
159
168
mp_map_t * map = NULL ;
160
169
if (type == & mp_type_module ) {
You can’t perform that action at this time.
0 commit comments