viewport: Make sure to strip unicode literal symbols from the inspection output

This commit is contained in:
Tomas Babej 2017-01-08 18:04:46 +01:00
parent 2e402bf721
commit 048a1c8327

View file

@ -256,10 +256,12 @@ class ViewPort(object):
@property @property
def raw_defaults(self): def raw_defaults(self):
return u', '.join( value = u', '.join(
u'{0}:{1}'.format(key, value) u'{0}:{1}'.format(key, value)
for key, value in self.defaults.items() for key, value in self.defaults.items()
) )
# Strip u'' literal symbols from the output
return value.replace("u'", "'") if six.PY2 else value
@property @property
def viewport_tasks(self): def viewport_tasks(self):