From d45d73205930bbd47172a5bc73e17e55de4b8818 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Thu, 31 May 2018 11:52:03 +0300 Subject: [PATCH] PY-18029 Remove superfluous value prefix with class name --- .../pydev/_pydevd_bundle/pydevd_thrift.py | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py b/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py index 9470202ca9ca..57d6e4026d25 100644 --- a/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py +++ b/python/helpers/pydev/_pydevd_bundle/pydevd_thrift.py @@ -315,24 +315,11 @@ def var_to_struct(val, name, doTrim=True, additional_in_xml='', evaluate_full_va elif v.__class__ in (list, tuple): if len(v) > 300: - value = '%s: %s' % (str(v.__class__), '' % (len(v),)) + value = '' % (len(v),) else: - value = '%s: %s' % (str(v.__class__), v) + value = str(v) else: - try: - cName = str(v.__class__) - if cName.find('.') != -1: - cName = cName.split('.')[-1] - - elif cName.find("'") != -1: # does not have '.' (could be something like ) - cName = cName[cName.index("'") + 1:] - - if cName.endswith("'>"): - cName = cName[:-2] - except: - cName = str(v.__class__) - - value = '%s: %s' % (cName, v) + value = str(v) else: value = str(v) except: