Removed old deprecation warnings for data= keyword in msg(). The data= keyword is no longer supported.

This commit is contained in:
Griatch 2015-02-26 19:56:14 +01:00
parent e592b97223
commit c0aafe74ab
2 changed files with 0 additions and 15 deletions

View file

@ -490,7 +490,6 @@ class DefaultObject(ObjectDB):
command structure.
"""
# nick replacement - we require full-word matching.
# do text encoding conversion
raw_string = to_unicode(raw_string)
raw_string = self.nicks.nickreplace(raw_string,
@ -519,13 +518,6 @@ class DefaultObject(ObjectDB):
text = to_str(text, force_string=True) if text else ""
if "data" in kwargs:
# deprecation warning
log_depmsg("ObjectDB.msg(): 'data'-dict keyword is deprecated. Use **kwargs instead.")
data = kwargs.pop("data")
if isinstance(data, dict):
kwargs.update(data)
if from_obj:
# call hook
try:

View file

@ -339,13 +339,6 @@ class DefaultPlayer(PlayerDB):
and handles the sessid). Can also be a list of sessids.
kwargs (dict) - All other keywords are parsed as extra data.
"""
if "data" in kwargs:
# deprecation warning
logger.log_depmsg("PlayerDB:msg() 'data'-dict keyword is deprecated. Use **kwargs instead.")
data = kwargs.pop("data")
if isinstance(data, dict):
kwargs.update(data)
text = to_str(text, force_string=True) if text else ""
if from_obj:
# call hook