Commits

Anonymous committed 428849c

fixmodnames: renamed fix argument to fixer

  • Participants
  • Parent commits 2660148

Comments (0)

Files changed (1)

File rope/contrib/fixmodnames.py

     def __init__(self, project):
         self.project = project
 
-    def get_changes(self, fix=str.lower,
+    def get_changes(self, fixer=str.lower,
                     task_handle=taskhandle.NullTaskHandle()):
         stack = changestack.ChangeStack(self.project, 'Fixing module names')
         try:
                     modname = resource.name.rsplit('.', 1)[0]
                     if modname == '__init__':
                         modname = resource.parent.name
-                    if modname != fix(modname):
+                    if modname != fixer(modname):
                         renamer = rename.Rename(self.project, resource)
                         changes = renamer.get_changes(modname.lower(),
                                                       task_handle=handle)