summaryrefslogtreecommitdiff
path: root/markdown/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/util.py')
-rw-r--r--markdown/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown/util.py b/markdown/util.py
index 98cfbf7..46cfe68 100644
--- a/markdown/util.py
+++ b/markdown/util.py
@@ -174,7 +174,7 @@ def _get_stack_depth(size=2):
def nearing_recursion_limit():
- """Return true if current stack depth is withing 100 of maximum limit."""
+ """Return true if current stack depth is within 100 of maximum limit."""
return sys.getrecursionlimit() - _get_stack_depth() < 100
@@ -349,7 +349,7 @@ class Registry:
* `priority`: An integer or float used to sort against all items.
If an item is registered with a "name" which already exists, the
- existing item is replaced with the new item. Tread carefully as the
+ existing item is replaced with the new item. Treat carefully as the
old item is lost with no way to recover it. The new item will be
sorted according to its priority and will **not** retain the position
of the old item.
@@ -388,7 +388,7 @@ class Registry:
# Deprecated Methods which provide a smooth transition from OrderedDict
def __setitem__(self, key, value):
- """ Register item with priorty 5 less than lowest existing priority. """
+ """ Register item with priority 5 less than lowest existing priority. """
if isinstance(key, str):
warnings.warn(
'Using setitem to register a processor or pattern is deprecated. '