1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Changed tostring to better format tag output

This commit is contained in:
Myned 2017-10-11 02:55:49 -04:00
parent a99b9a9626
commit e5fa7c35a6

View file

@ -1,9 +1,13 @@
def tostring(i):
o = ' '
def tostring(i, *, random=False):
o = ''
if i:
for v in i:
o += v + ' '
o = o[1:-1]
o = o[:-1]
elif random is True:
o += 'order:random'
else:
o = ' '
return o
def tostring_commas(i):