[issue24445] rstrip strips what it doesn't have to
o1da added the comment: Ok, thank you. I thought it trims whole sequence or nothing. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu
[issue24445] rstrip strips what it doesn't have to
New submission from o1da: Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> text = 'test1/1.jp2' >>> text.rstrip('.jp2