summaryrefslogtreecommitdiff
path: root/natsort/ns_enum.py
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2018-11-18 18:34:24 -0800
committerSeth M Morton <seth.m.morton@gmail.com>2018-11-18 20:25:23 -0800
commite0fa14bdf38e8c6b4d6d9ebea4c59fdac8a6a906 (patch)
tree8861fa2f4e978cbd4ff68d33ee03114d1171ecc9 /natsort/ns_enum.py
parent48cc9819a93aad94b10d0ff9087a2d63f0623fc2 (diff)
downloadnatsort-e0fa14bdf38e8c6b4d6d9ebea4c59fdac8a6a906.tar.gz
Remove versorted, index_versorted, ns.V, and ns.VERSION
Good riddance to bad rubbish. The existence of these functions is at best misleading.
Diffstat (limited to 'natsort/ns_enum.py')
-rw-r--r--natsort/ns_enum.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/natsort/ns_enum.py b/natsort/ns_enum.py
index 8605574..91f7f71 100644
--- a/natsort/ns_enum.py
+++ b/natsort/ns_enum.py
@@ -6,7 +6,6 @@ what algorithm natsort uses.
from __future__ import absolute_import, division, print_function, unicode_literals
import collections
-import warnings
# The below are the base ns options. The values will be stored as powers
# of two so bitmasks can be used to extract the user's requested options.
@@ -175,10 +174,6 @@ class _NSEnum(collections.namedtuple("_NSEnum", enum_fields.keys())):
If an NaN shows up in the input, this instructs `natsort` to
treat these as +Infinity and place them after all the other numbers.
By default, an NaN be treated as -Infinity and be placed first.
- VERSION, V
- Deprecated as of `natsort` version 5.0.0; this option is now
- a no-op because it is the default. It will be removed in `natsort`
- version 6.0.0.
Notes
-----
@@ -193,19 +188,6 @@ class _NSEnum(collections.namedtuple("_NSEnum", enum_fields.keys())):
"""
- _msg = "ns.{0} is deprecated and will be removed in natsort 6.0.0, "
- _msg += "this option does nothing so please simply remove its use."
-
- @property
- def V(self): # noqa: N802
- warnings.warn(self._msg.format("V"), DeprecationWarning, stacklevel=2)
- return 0
-
- @property
- def VERSION(self): # noqa: N802
- warnings.warn(self._msg.format("VERSION"), DeprecationWarning, stacklevel=2)
- return 0
-
# Here is where the instance of the ns enum that will be exported is created.
# It is a poor-man's singleton.