classification
Title: Fixers find, rfind, etc in 'string' module
Type: feature request
Components: 2to3 (2.x to 3.0 conversion tool) Versions: Python 3.0
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: bhy, collinwinter
Priority: Keywords:

Created on 2008-05-17 12:30 by bhy, last changed 2008-05-17 17:05 by benjamin.peterson.

Messages
msg66993 (view) Author: Haoyu Bai (bhy) Date: 2008-05-17 12:30
Functions like find() rfind() index() rindex() has been removed in
Python 3.0. So there should be a 2to3 fix for it.

Eg. fix
  if string.find(s, "hello") >= 0:
to
  if str.find(s, "hello") >= 0:

Thank you!
History
Date User Action Args
2008-05-17 17:05:13benjamin.petersonsettitle: Fixes find, rfind, etc in 'string' module -> Fixers find, rfind, etc in 'string' module
2008-05-17 12:30:16bhycreate