Just.. cosmetics ;)

This commit is contained in:
Bernardo Damele
2011-01-31 22:51:14 +00:00
parent 35b6d7278a
commit 6761933f75
7 changed files with 18 additions and 7 deletions

View File

@@ -2300,6 +2300,10 @@ def listToStrValue(value):
>>> listToStrValue([1,2,3])
'1, 2, 3'
"""
if isinstance(value, (set, tuple)):
value = list(value)
if isinstance(value, list):
retValue = value.__str__().lstrip('[').rstrip(']')
else: