(dist, attr, value)
Verify that value is a string list
Verify that value is a string list
Verify that value is a string list
def assert_string_list(dist, attr, value):
    """Verify that value is a string list"""
    try:
        # verify that value is a list or tuple to exclude unordered
        # or single-use iterables
        assert isinstance(value, (list, tuple))
        # verify that elements of value are strings
        assert ''.join(value) != value
    except (TypeError, ValueError, AttributeError, AssertionError):
        raise DistutilsSetupError(
            "%r must be a list of strings (got %r)" % (attr, value)
        )
def assert_string_list ( dist , attr , value ) : try : # verify that value is a list or tuple to exclude unordered # or single-use iterables assert isinstance ( value , ( list , tuple ) ) # verify that elements of value are strings assert '' . join ( value ) != value except ( TypeError , ValueError , AttributeError , AssertionError ) : raise DistutilsSetupError ( "%r must be a list of strings (got %r)" % ( attr , value ) )