fixed a bug regarding removal of \n at end of output
This commit is contained in:
parent
041dee9355
commit
48140d2a0c
1 changed files with 3 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue