@@ -81,7 +81,7 @@ The first approach uses the ``Project.get_resource()`` method.
8181
8282 myresource = myproject.get_resource(' /path/to/resource' )
8383
84- However, it's preferable to use the `` libutils.path_to_resource() ` `
84+ However, it's preferable to use the `libutils.path_to_resource() `
8585function, because it's more flexible and offers a unified way to create
8686resources. It takes a ``project `` and ``path `` as parameters with an
8787optional ``type ``. The ``type `` parameter, with values ``file `` or
@@ -212,14 +212,14 @@ One of the greatest strengths of rope is its Static Object Analysis
212212of objects passed to the function. Rope uses the collected data to infer
213213the type of function parameters, return values, and the objects stored
214214in built-in containers. The function
215- `` rope.base.libutils.analyze_modules() ` ` performs SOA on all modules in
215+ `rope.base.libutils.analyze_modules ` performs SOA on all modules in
216216the project. It is recommended that you call this function occasionally,
217217and especially before performing large refactorings. Note that analyzing
218218all modules of a project may take a long time.
219219
220220If you have ``automatic_soa `` set, which instructs rope to analyze the
221221changed scopes of modules, then you should report the changes by calling
222- `` rope.base.libutils.report_change() ` ` when saving files, as follows:
222+ `rope.base.libutils.report_change() ` when saving files, as follows:
223223
224224.. code-block :: python
225225
@@ -354,8 +354,8 @@ values for ``type`` are the strings ``'file'`` or ``'folder'``.
354354 new_folder = libutils.path_to_resource(myproject, ' /path/to/folder' , type = ' folder' )
355355
356356
357- `` rope.base.project.Project ` `
358- =============================
357+ `rope.base.project.Project `
358+ ===========================
359359
360360You can create a project by:
361361
@@ -365,9 +365,9 @@ You can create a project by:
365365
366366 Where the ``root_address `` is the root folder of your project.
367367
368- A project has some useful attributes. `` Project.address ` ` is the
369- address of the root folder of a project. `` Project.root ` ` is a
370- `` Folder ` ` object that points to that folder.
368+ A project has some useful attributes. `Project.address ` is the
369+ address of the root folder of a project. `Project.root ` is a
370+ `Folder ` object that points to that folder.
371371
372372
373373`Project.do() `
@@ -446,13 +446,13 @@ history.
446446
447447Provides useful methods for managing python modules and packages. Each
448448project has a ``PyCore `` that can be accessed using the
449- `` Project.pycore ` ` attribute.
449+ `Project.pycore ` attribute.
450450
451- `` PyCore.run_module() ` ` runs a resource. When running, it collects type
451+ `PyCore.run_module() ` runs a resource. When running, it collects type
452452information to do dynamic object inference. For this reason modules
453453run much slower.
454454
455- Also `` Pycore.analyze_module() ` ` collects object information for a
455+ Also `Pycore.analyze_module() ` collects object information for a
456456module. The collected information can be used to enhance rope's
457457static object inference.
458458
@@ -522,10 +522,10 @@ exception.
522522Refactorings
523523============
524524
525- Have a look at `` rope.refactor ` ` package and its sub-modules. For
525+ Have a look at the ` rope.refactor ` package and its sub-modules. For
526526example for performing a move refactoring you can create an object
527527representing this operation (which will be an instance of e.g.
528- `MoveMethod `, `MoveModule `, ...) like this:
528+ `MoveMethod `, `MoveModule `, ...) using ` create_move `.
529529
530530.. code-block :: python
531531
0 commit comments