Skip to content

Commit 1854248

Browse files
committed
enforce keywords
1 parent df020bb commit 1854248

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

Monika After Story/game/0utils.rpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ python early in mas_utils:
462462
print("[WARNING]: " + msg, file=sys.stderr)
463463
mas_log.warning(msg)
464464

465-
def deprecated(*report_args, **report_kws):
465+
def deprecated(**report_kws):
466466
"""
467467
Decorator that marks functions and classes as deprecated
468468
@@ -499,7 +499,7 @@ python early in mas_utils:
499499
"""
500500
Wrapper around the deprecated function/class
501501
"""
502-
report_deprecation(callable_, *report_args, **report_kws)
502+
report_deprecation(callable_, **report_kws)
503503

504504
return callable_(*args, **kwargs)
505505

Monika After Story/game/event-handler.rpy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ init python:
24062406
# now this event has passsed checks, we can add it to the db
24072407
eventdb.setdefault(event.eventlabel, event)
24082408

2409-
@store.mas_utils.deprecated("mas_hideEVL", should_raise=True)
2409+
@store.mas_utils.deprecated(use_instead="mas_hideEVL", should_raise=True)
24102410
def hideEventLabel(
24112411
eventlabel,
24122412
lock=False,
@@ -2434,7 +2434,7 @@ init python:
24342434
# (DEfault: evhand.event_database)
24352435
mas_hideEventLabel(eventlabel, lock, derandom, depool, decond, eventdb)
24362436

2437-
@store.mas_utils.deprecated("mas_hideEvent")
2437+
@store.mas_utils.deprecated(use_instead="mas_hideEvent")
24382438
def hideEvent(
24392439
event,
24402440
lock=False,
@@ -2582,7 +2582,7 @@ init python:
25822582
"""
25832583
mas_showEvent(eventdb.get(ev_label, None), unlock, _random, _pool)
25842584

2585-
@store.mas_utils.deprecated("mas_lockEvent", should_raise=True)
2585+
@store.mas_utils.deprecated(use_instead="mas_lockEvent", should_raise=True)
25862586
def lockEvent(ev):
25872587
"""
25882588
NOTE: DEPRECATED
@@ -2593,7 +2593,7 @@ init python:
25932593
"""
25942594
mas_lockEvent(ev)
25952595

2596-
@store.mas_utils.deprecated("mas_lockEventLabel", should_raise=True)
2596+
@store.mas_utils.deprecated(use_instead="mas_lockEventLabel", should_raise=True)
25972597
def lockEventLabel(evlabel, eventdb=evhand.event_database):
25982598
"""
25992599
NOTE: DEPRECATED
@@ -2627,7 +2627,7 @@ init python:
26272627
evhand._lockEventLabel(evlabel, eventdb=eventdb)
26282628

26292629

2630-
@store.mas_utils.deprecated("MASEventList.push")
2630+
@store.mas_utils.deprecated(use_instead="MASEventList.push")
26312631
def pushEvent(event_label, skipeval=False, notify=False):
26322632
"""
26332633
This pushes high priority or time sensitive events onto the top of
@@ -2648,7 +2648,7 @@ init python:
26482648
MASEventList.push(event_label, skipeval, notify)
26492649

26502650

2651-
@store.mas_utils.deprecated("MASEventList.queue")
2651+
@store.mas_utils.deprecated(use_instead="MASEventList.queue")
26522652
def queueEvent(event_label, notify=False):
26532653
"""
26542654
This adds low priority or order-sensitive events onto the bottom of
@@ -2667,7 +2667,7 @@ init python:
26672667
MASEventList.queue(event_label, notify)
26682668

26692669

2670-
@store.mas_utils.deprecated("mas_unlockEvent", should_raise=True)
2670+
@store.mas_utils.deprecated(use_instead="mas_unlockEvent", should_raise=True)
26712671
def unlockEvent(ev):
26722672
"""
26732673
NOTE: DEPRECATED
@@ -2678,7 +2678,7 @@ init python:
26782678
"""
26792679
mas_unlockEvent(ev)
26802680

2681-
@store.mas_utils.deprecated("mas_unlockEventLabel")
2681+
@store.mas_utils.deprecated(use_instead="mas_unlockEventLabel")
26822682
def unlockEventLabel(evlabel, eventdb=evhand.event_database):
26832683
"""
26842684
NOTE: DEPRECATED
@@ -2761,7 +2761,7 @@ init python:
27612761
return evhand._isPresent(ev)
27622762

27632763

2764-
@store.mas_utils.deprecated("MASEventList.pop", should_raise=True)
2764+
@store.mas_utils.deprecated(use_instead="MASEventList.pop", should_raise=True)
27652765
def popEvent(remove=True):
27662766
"""
27672767
DO NOT USE.

Monika After Story/game/script-affection.rpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,11 +2025,11 @@ init python:
20252025
"""
20262026
return mas_affection._get_aff()
20272027

2028-
@mas_utils.deprecated("_get_current_aff_lose")
2028+
@mas_utils.deprecated(use_instead="_get_current_aff_lose")
20292029
def _mas_getBadExp():
20302030
return _get_current_aff_lose()
20312031

2032-
@mas_utils.deprecated("_get_current_aff_gain")
2032+
@mas_utils.deprecated(use_instead="_get_current_aff_gain")
20332033
def _mas_getGoodExp():
20342034
return _get_current_aff_gain()
20352035

Monika After Story/game/sprite-chart.rpy

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3963,7 +3963,7 @@ init -3 python:
39633963
acs_layer
39643964
)
39653965

3966-
@store.mas_utils.deprecated("wear_acs_in")
3966+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
39673967
def wear_acs_pre(self, acs):
39683968
"""DEPRECATED
39693969
Wears the given accessory in the pre body accessory mode
@@ -3973,7 +3973,7 @@ init -3 python:
39733973
"""
39743974
self.wear_acs_in(acs, self.PRE_ACS)
39753975

3976-
@store.mas_utils.deprecated("wear_acs_in")
3976+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
39773977
def wear_acs_bbh(self, acs):
39783978
"""DEPRECATED
39793979
Wears the given accessory in the post back hair accessory loc
@@ -3983,7 +3983,7 @@ init -3 python:
39833983
"""
39843984
self.wear_acs_in(acs, self.BBH_ACS)
39853985

3986-
@store.mas_utils.deprecated("wear_acs_in")
3986+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
39873987
def wear_acs_bfh(self, acs):
39883988
"""DEPRECATED
39893989
Wears the given accessory in the pre front hair accesory log
@@ -3993,7 +3993,7 @@ init -3 python:
39933993
"""
39943994
self.wear_acs_in(acs, self.BFH_ACS)
39953995

3996-
@store.mas_utils.deprecated("wear_acs_in")
3996+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
39973997
def wear_acs_afh(self, acs):
39983998
"""DEPRECATED
39993999
Wears the given accessory in the between front hair and arms
@@ -4004,7 +4004,7 @@ init -3 python:
40044004
"""
40054005
self.wear_acs_in(acs, self.AFH_ACS)
40064006

4007-
@store.mas_utils.deprecated("wear_acs_in")
4007+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
40084008
def wear_acs_mid(self, acs):
40094009
"""DEPRECATED
40104010
Wears the given accessory in the mid body acessory mode
@@ -4014,7 +4014,7 @@ init -3 python:
40144014
"""
40154015
self.wear_acs_in(acs, self.MID_ACS)
40164016

4017-
@store.mas_utils.deprecated("wear_acs_in")
4017+
@store.mas_utils.deprecated(use_instead="wear_acs_in")
40184018
def wear_acs_pst(self, acs):
40194019
"""DEPRECATED
40204020
Wears the given accessory in the post body accessory mode

0 commit comments

Comments
 (0)