From ae9d88c3f96aa3e62f319fafe9433b566ad67faa Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 4 Jan 2013 11:18:53 +0100 Subject: [PATCH] remove generalized refactoring method for now --- jedi/refactoring.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/jedi/refactoring.py b/jedi/refactoring.py index b02cd51f..91837f2a 100644 --- a/jedi/refactoring.py +++ b/jedi/refactoring.py @@ -12,16 +12,12 @@ class Refactoring(object): return '' -def refactor(operation, *args, **kwargs): - """ The end of the params are the same as in: +def rename(new_name, *args, **kwargs): + """ The `args` / `kwargs` params are the same as in `api.Script`. :param operation: The refactoring operation to execute. :type operation: str :return: list of changed lines/changed files """ - return globals()[operation](*args, **kwargs) - -def rename(new_name, *args, **kwargs): script = api.Script(*args, **kwargs) old_names = script.related_names() - return []