mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-27 16:40:05 -07:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3469c3277d | |||
| c087f881fd | |||
| f754cf9cb3 | |||
| 16487a877c | |||
| 8996786331 |
@@ -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