Minor bug fix - messages.py replace

This commit is contained in:
arjun23496 2016-08-29 16:57:20 +05:30
parent 99744cc780
commit b3f0596652

View File

@ -278,7 +278,7 @@ class Message(basetypes.Serializable):
self.content, replacements = re.subn(
pattern, repl, self.content, flags=flags, count=count
)
replacements += self.headers.replace(pattern, repl, flags)
replacements += self.headers.replace(pattern, repl, flags=flags, count=count)
return replacements
# Legacy