Commits

Anonymous committed 32ff88b

introduce_factory: renamed IntroduceFactoryRefactoring

  • Participants
  • Parent commits 779f612

Comments (0)

Files changed (2)

rope/refactor/introduce_factory.py

 from rope.refactor import rename, occurrences, sourceutils
 
 
-class IntroduceFactoryRefactoring(object):
+class IntroduceFactory(object):
 
     def __init__(self, project, resource, offset):
         self.pycore = project.pycore
         result = rename.rename_in_module(finder, changed_name, resource=file_,
                                          replace_primary=global_factory)
         return result
+
+IntroduceFactoryRefactoring = IntroduceFactory

ropetest/refactor/__init__.py

 import ropetest.refactor.suitestest
 from rope.base.exceptions import RefactoringError, InterruptedTaskError
 from rope.refactor.encapsulate_field import EncapsulateField
-from rope.refactor.introduce_factory import IntroduceFactoryRefactoring
+from rope.refactor.introduce_factory import IntroduceFactory
 from rope.refactor.localtofield import LocalToField
 from rope.refactor.method_object import MethodObject
 from ropetest import testutils
 
     def _introduce_factory(self, resource, offset, factory_name,
                                    global_factory=False):
-        factory_introducer = IntroduceFactoryRefactoring(self.project,
+        factory_introducer = IntroduceFactory(self.project,
                                                          resource, offset)
         changes = factory_introducer.get_changes(factory_name, global_factory)
         self.project.do(changes)