mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-24 17:28:36 +08:00
remove generalized refactoring method for now
This commit is contained in:
+2
-6
@@ -12,16 +12,12 @@ class Refactoring(object):
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
def refactor(operation, *args, **kwargs):
|
def rename(new_name, *args, **kwargs):
|
||||||
""" The end of the params are the same as in:
|
""" The `args` / `kwargs` params are the same as in `api.Script`.
|
||||||
:param operation: The refactoring operation to execute.
|
:param operation: The refactoring operation to execute.
|
||||||
:type operation: str
|
:type operation: str
|
||||||
:return: list of changed lines/changed files
|
:return: list of changed lines/changed files
|
||||||
"""
|
"""
|
||||||
return globals()[operation](*args, **kwargs)
|
|
||||||
|
|
||||||
def rename(new_name, *args, **kwargs):
|
|
||||||
script = api.Script(*args, **kwargs)
|
script = api.Script(*args, **kwargs)
|
||||||
old_names = script.related_names()
|
old_names = script.related_names()
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user