Closed researcher175 closed 6 months ago
Rename Field refactoring allows you to rename a field with the same name used in a global method It would be nice if Rope could alert the user to decide whether to continue or not with the transformation.
Steps to reproduce the behavior:
import csv
DEFAULT_ENCODING = 'utf-8'
class DelimitedFormat(object): def init(self, fp, **kwargs): reader = csv.reader(fp, delimiter=",", encoding=DEFAULT_ENCODING)
def detect(fp, max_read=1024): return None
2. Apply the Rename Field refactoring to 'DEFAULT_ENCODING' with the new name 'detect'
Closing. Ticket merged into #779.
Rename Field refactoring allows you to rename a field with the same name used in a global method It would be nice if Rope could alert the user to decide whether to continue or not with the transformation.
Steps to reproduce the behavior:
DEFAULT_ENCODING = 'utf-8'
class DelimitedFormat(object): def init(self, fp, **kwargs): reader = csv.reader(fp, delimiter=",", encoding=DEFAULT_ENCODING)
def detect(fp, max_read=1024): return None