def _getStrippedValue(value, strip):
if strip is None:<EOL><INDENT>value = value.strip() <EOL><DEDENT>elif isinstance(strip, str):<EOL><INDENT>value = value.strip(strip) <EOL><DEDENT>elif strip is False:<EOL><INDENT>pass <EOL><DEDENT>return value<EOL>
Like the strip() string method, except the strip argument describes
    different behavior:

    If strip is None, whitespace is stripped.

    If strip is a string, the characters in the string are stripped.

    If strip is False, nothing is stripped.