diff --git a/IPython/kernel/blocking/channels.py b/IPython/kernel/blocking/channels.py index c4d4a92..ac383e9 100644 --- a/IPython/kernel/blocking/channels.py +++ b/IPython/kernel/blocking/channels.py @@ -16,17 +16,6 @@ from IPython.utils.py3compat import string_types, iteritems # some utilities to validate message structure, these might get moved elsewhere # if they prove to have more generic utility -def validate_string_list(lst): - """Validate that the input is a list of strings. - - Raises ValueError if not.""" - if not isinstance(lst, list): - raise ValueError('input %r must be a list' % lst) - for x in lst: - if not isinstance(x, string_types): - raise ValueError('element %r in list must be a string' % x) - - def validate_string_dict(dct): """Validate that the input is a dict with string keys and values. diff --git a/IPython/kernel/channels.py b/IPython/kernel/channels.py index 42ffe09..f9cfc91 100644 --- a/IPython/kernel/channels.py +++ b/IPython/kernel/channels.py @@ -40,17 +40,6 @@ class InvalidPortNumber(Exception): # some utilities to validate message structure, these might get moved elsewhere # if they prove to have more generic utility -def validate_string_list(lst): - """Validate that the input is a list of strings. - - Raises ValueError if not.""" - if not isinstance(lst, list): - raise ValueError('input %r must be a list' % lst) - for x in lst: - if not isinstance(x, string_types): - raise ValueError('element %r in list must be a string' % x) - - def validate_string_dict(dct): """Validate that the input is a dict with string keys and values.