Skip to content

Commit a15da5f

Browse files
committed
Change context deprecations to PendingDeprecationWarning.
Since the main tutorial was using these functions I was going to have to deal with endless issues from people who don't know that deprecation warnings are an optional suggestion at their skill level.
1 parent 286fa1c commit a15da5f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ v2.0.0
88

99
Unreleased
1010
------------------
11+
Deprecated
12+
- Changed context deprecations to PendingDeprecationWarning to reduce mass
13+
panic from tutorial followers.
1114

1215
11.16.0 - 2020-10-23
1316
--------------------

tcod/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
from typing import Any, Iterable, List, Optional, Tuple
5454

5555
import tcod
56-
from tcod._internal import _check, _check_warn, deprecate
56+
from tcod._internal import _check, _check_warn, pending_deprecate
5757
from tcod.loader import ffi, lib
5858
import tcod.event
5959
import tcod.tileset
@@ -430,7 +430,7 @@ def new(
430430
return Context._claim(context_pp[0])
431431

432432

433-
@deprecate(
433+
@pending_deprecate(
434434
"Call tcod.context.new with width and height as keyword parameters."
435435
)
436436
def new_window(
@@ -459,7 +459,7 @@ def new_window(
459459
)
460460

461461

462-
@deprecate(
462+
@pending_deprecate(
463463
"Call tcod.context.new with columns and rows as keyword parameters."
464464
)
465465
def new_terminal(

0 commit comments

Comments
 (0)