mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-07 15:13:52 -08:00
Compare commits
5 Commits
0.4.6
...
core_optim
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3469c3277d | ||
|
|
c087f881fd | ||
|
|
f754cf9cb3 | ||
|
|
16487a877c | ||
|
|
8996786331 |
10
Utils.py
10
Utils.py
@@ -789,13 +789,13 @@ class DeprecateDict(dict):
|
||||
self.should_error = error
|
||||
super().__init__()
|
||||
|
||||
def __getitem__(self, item: Any) -> Any:
|
||||
if self.should_error:
|
||||
deprecate(self.log_message)
|
||||
elif __debug__:
|
||||
if __debug__:
|
||||
def __getitem__(self, item: Any) -> Any:
|
||||
if self.should_error:
|
||||
deprecate(self.log_message)
|
||||
import warnings
|
||||
warnings.warn(self.log_message)
|
||||
return super().__getitem__(item)
|
||||
return super().__getitem__(item)
|
||||
|
||||
|
||||
def _extend_freeze_support() -> None:
|
||||
|
||||
Reference in New Issue
Block a user