PY3.E1310
Bad str strip call
The argument to a str.{l,r,}strip call contains a duplicate character.
Noncompliant Code:
Copy
"Hello World".strip("Hello")
/* >>> ' World' */
"abcbc def bacabc".strip("abcbc ")
/* >>> 'def' */
Compliant Code:
Copy
"Hello World".strip("Helo")
/* >>> ' World' */
"abcbc def bacabc".strip("abc ")
/* >>> 'def' */