Removed old deprecation warnings for data= keyword in msg(). The data= keyword is no longer supported.
This commit is contained in:
parent
e592b97223
commit
c0aafe74ab
2 changed files with 0 additions and 15 deletions
|
|
@ -490,7 +490,6 @@ class DefaultObject(ObjectDB):
|
||||||
command structure.
|
command structure.
|
||||||
"""
|
"""
|
||||||
# nick replacement - we require full-word matching.
|
# nick replacement - we require full-word matching.
|
||||||
|
|
||||||
# do text encoding conversion
|
# do text encoding conversion
|
||||||
raw_string = to_unicode(raw_string)
|
raw_string = to_unicode(raw_string)
|
||||||
raw_string = self.nicks.nickreplace(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 ""
|
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:
|
if from_obj:
|
||||||
# call hook
|
# call hook
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -339,13 +339,6 @@ class DefaultPlayer(PlayerDB):
|
||||||
and handles the sessid). Can also be a list of sessids.
|
and handles the sessid). Can also be a list of sessids.
|
||||||
kwargs (dict) - All other keywords are parsed as extra data.
|
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 ""
|
text = to_str(text, force_string=True) if text else ""
|
||||||
if from_obj:
|
if from_obj:
|
||||||
# call hook
|
# call hook
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue