fixed a bug regarding removal of \n at end of output

This commit is contained in:
phear 2006-04-20 08:43:19 +00:00
parent 041dee9355
commit 48140d2a0c

View file

@ -1,6 +1,8 @@
#!/usr/bin/env python
#TODO: funktion, die aus parametern schoene listen macht.
import string
class KeywordGenerator:
def __init__(self):
import string,sys
@ -52,7 +54,7 @@ class KeywordGenerator:
for tmplist2item in tmplist2:
ret += self.quotes_and_braces(tmplist2item)
ret += "\n"
return ret[:-3] #cut the tailing '\n\n\n'
return ret[:-3]+ string.replace(ret[-3:],"\n","")#cut the tailing '\n\n\n'
'''
def test():