1. Steve Losh
  2. rope


Ali Gholami Rudi  committed a51d9c1

fixmodnames: added module docs

  • Participants
  • Parent commits 74279fd
  • Branches trunk

Comments (0)

Files changed (1)

File rope/contrib/fixmodnames.py

View file
-"""Fix the name of modules"""
+"""Fix the name of modules
+This module is useful when you want to rename many of the modules in
+your project.  That can happen specially when you want to change their
+naming style.
+For instance::
+  fixer = FixModuleNames(project)
+  changes = fixer.get_changes(fixer=str.lower)
+  project.do(changes)
+Here it renames all modules and packages to use lower-cased chars.
+You can tell it to use any other style by using the ``fixer``
 from rope.base import change, taskhandle
 from rope.contrib import changestack
 from rope.refactor import rename