diff options
author | Mridul Seth <seth.mridul@gmail.com> | 2022-06-16 08:54:16 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 21:54:16 -0700 |
commit | 7f6167950849a6cf280a48250a4e1d6a72f4fbbc (patch) | |
tree | 45b3519b12f38156269bfcd275a8923186380f2f /networkx/utils | |
parent | b309a6f7d8a6d6762497e6bca40d4283a9923cd1 (diff) | |
download | networkx-7f6167950849a6cf280a48250a4e1d6a72f4fbbc.tar.gz |
Remove deprecated function is_list_of_ints (#5743)
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Diffstat (limited to 'networkx/utils')
-rw-r--r-- | networkx/utils/misc.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/networkx/utils/misc.py b/networkx/utils/misc.py index eed00d8c..271c1442 100644 --- a/networkx/utils/misc.py +++ b/networkx/utils/misc.py @@ -26,7 +26,6 @@ __all__ = [ "iterable", "flatten", "make_list_of_ints", - "is_list_of_ints", "generate_unique_node", "default_opener", "dict_to_numpy_array", @@ -119,25 +118,6 @@ def make_list_of_ints(sequence): return sequence -def is_list_of_ints(intlist): - """Return True if list is a list of ints. - - .. deprecated:: 2.6 - This is deprecated and will be removed in NetworkX v3.0. - """ - msg = ( - "is_list_of_ints is deprecated and will be removed in 3.0." - "See also: ``networkx.utils.make_list_of_ints.``" - ) - warnings.warn(msg, DeprecationWarning, stacklevel=2) - if not isinstance(intlist, list): - return False - for i in intlist: - if not isinstance(i, int): - return False - return True - - def generate_unique_node(): """Generate a unique node label. |