mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 02:23:07 +02:00
viewport: Make sure to strip unicode literal symbols from the inspection output
This commit is contained in:
parent
2e402bf721
commit
048a1c8327
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue