Docstring and typo fix.

This commit is contained in:
Fletcher Boyd 2013-09-06 14:59:07 +08:00
parent 07b5abff7b
commit 2fb0f811b8

View file

@ -1,4 +1,5 @@
def rep(format_string):
"""Replace based irc formatting"""
stuff = {}
stuff['col'] = {'[white]':'\x030',
'[black]':'\x031',
@ -23,5 +24,5 @@ def rep(format_string):
for x in stuff:
final.update(x)
for x in final:
format_string = format_string.replace(x,rep[x])
format_string = format_string.replace(x,final[x])
return format_string