Docstring and typo fix.
This commit is contained in:
parent
07b5abff7b
commit
2fb0f811b8
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
def rep(format_string):
|
def rep(format_string):
|
||||||
|
"""Replace based irc formatting"""
|
||||||
stuff = {}
|
stuff = {}
|
||||||
stuff['col'] = {'[white]':'\x030',
|
stuff['col'] = {'[white]':'\x030',
|
||||||
'[black]':'\x031',
|
'[black]':'\x031',
|
||||||
|
@ -23,5 +24,5 @@ def rep(format_string):
|
||||||
for x in stuff:
|
for x in stuff:
|
||||||
final.update(x)
|
final.update(x)
|
||||||
for x in final:
|
for x in final:
|
||||||
format_string = format_string.replace(x,rep[x])
|
format_string = format_string.replace(x,final[x])
|
||||||
return format_string
|
return format_string
|
||||||
|
|
Reference in a new issue