Skip to content

Commit

Permalink
Remove weird escpaing of 's' character, which is the syntax error the…
Browse files Browse the repository at this point in the history
…se days.
  • Loading branch information
mcepl committed Apr 27, 2020
1 parent 978a55f commit b4d3427
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions rope/base/change.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def get_changed_resources(self):


def _handle_job_set(function):
"""A decorator for handling `taskhandle.JobSet`\s
"""A decorator for handling `taskhandle.JobSet`
A decorator for handling `taskhandle.JobSet`\s for `do` and `undo`
methods of `Change`\s.
A decorator for handling `taskhandle.JobSet` for `do` and `undo`
methods of `Change`.
"""
def call(self, job_set=taskhandle.NullJobSet()):
job_set.started_job(str(self))
Expand Down
2 changes: 1 addition & 1 deletion rope/base/oi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
that is returned from it (we usually need the returned value for the
given parameter objects).
Rope might collect and store information for other `PyName`\s, too.
Rope might collect and store information for other `PyName`, too.
For instance rope stores the object builtin containers hold.
"""
2 changes: 1 addition & 1 deletion rope/base/oi/soi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def infer_returned_object(pyfunction, args):

@_ignore_inferred
def infer_parameter_objects(pyfunction):
"""Infer the `PyObject`\s of parameters of this `PyFunction`"""
"""Infer the `PyObject` of parameters of this `PyFunction`"""
object_info = pyfunction.pycore.object_info
result = object_info.get_parameter_objects(pyfunction)
if result is None:
Expand Down
2 changes: 1 addition & 1 deletion rope/base/oi/transform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Provides classes for persisting `PyObject`\s"""
"""Provides classes for persisting `PyObject`"""
import os
import re

Expand Down
2 changes: 1 addition & 1 deletion rope/base/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_resource(self, resource_name):
folder address is an empty string. If the resource does not
exist a `exceptions.ResourceNotFound` exception would be
raised. Use `get_file()` and `get_folder()` when you need to
get nonexistent `Resource`\s.
get nonexistent `Resource`.
"""
path = self._get_resource_path(resource_name)
Expand Down
2 changes: 1 addition & 1 deletion rope/base/pynames.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class PyName(object):
"""References to `PyObject`\s inside python programs"""
"""References to `PyObject` inside python programs"""

def get_object(self):
"""Return the `PyObject` object referenced by this `PyName`"""
Expand Down
2 changes: 1 addition & 1 deletion rope/base/pyobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __contains__(self, key):
return key in self.get_attributes()

def __eq__(self, obj):
"""Check the equality of two `PyObject`\s
"""Check the equality of two `PyObject`
Currently it is assumed that instances (the direct instances
of `PyObject`, not the instances of its subclasses) are equal
Expand Down
4 changes: 2 additions & 2 deletions rope/base/resourceobserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
class ResourceObserver(object):
"""Provides the interface for observing resources
`ResourceObserver`\s can be registered using `Project.
`ResourceObserver` can be registered using `Project.
add_observer()`. But most of the time `FilteredResourceObserver`
should be used. `ResourceObserver`\s report all changes passed
should be used. `ResourceObserver` report all changes passed
to them and they don't report changes to all resources. For
example if a folder is removed, it only calls `removed()` for that
folder and not its contents. You can use
Expand Down
2 changes: 1 addition & 1 deletion rope/base/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(self):
def set_patterns(self, patterns):
"""Specify which resources to match
`patterns` is a `list` of `str`\s that can contain ``*`` and
`patterns` is a `list` of `str` that can contain ``*`` and
``?`` signs for matching resource names.
"""
Expand Down
2 changes: 1 addition & 1 deletion rope/contrib/autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def generate_cache(self, resources=None, underlined=None,
task_handle=taskhandle.NullTaskHandle()):
"""Generate global name cache for project files
If `resources` is a list of `rope.base.resource.File`\s, only
If `resources` is a list of `rope.base.resource.File`, only
those files are searched; otherwise all python modules in the
project are cached.
Expand Down
4 changes: 2 additions & 2 deletions rope/contrib/codeassist.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def code_assist(project, source_code, offset, resource=None,
templates=None, maxfixes=1, later_locals=True):
"""Return python code completions as a list of `CodeAssistProposal`\s
"""Return python code completions as a list of `CodeAssistProposal`
`resource` is a `rope.base.resources.Resource` object. If
provided, relative imports are handled.
Expand Down Expand Up @@ -317,7 +317,7 @@ def get_default(self):
def sorted_proposals(proposals, scopepref=None, typepref=None):
"""Sort a list of proposals
Return a sorted list of the given `CodeAssistProposal`\s.
Return a sorted list of the given `CodeAssistProposal`.
`scopepref` can be a list of proposal scopes. Defaults to
``['parameter_keyword', 'local', 'global', 'imported',
Expand Down
2 changes: 1 addition & 1 deletion rope/contrib/finderrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def find_errors(project, resource):
"""Find possible bad name and attribute accesses
It returns a list of `Error`\s.
It returns a list of `Error`.
"""
pymodule = project.get_pymodule(resource)
finder = _BadAccessFinder(pymodule)
Expand Down
6 changes: 3 additions & 3 deletions rope/contrib/findit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
def find_occurrences(project, resource, offset, unsure=False, resources=None,
in_hierarchy=False,
task_handle=taskhandle.NullTaskHandle()):
"""Return a list of `Location`\s
"""Return a list of `Location`
If `unsure` is `True`, possible matches are returned, too. You
can use `Location.unsure` to see which are unsure occurrences.
`resources` can be a list of `rope.base.resource.File`\s that
`resources` can be a list of `rope.base.resource.File` that
should be searched for occurrences; if `None` all python files
in the project are searched.
Expand All @@ -40,7 +40,7 @@ def find_implementations(project, resource, offset, resources=None,
"""Find the places a given method is overridden.
Finds the places a method is implemented. Returns a list of
`Location`\s.
`Location`.
"""
name = worder.get_name_at(resource, offset)
this_pymodule = project.get_pymodule(resource)
Expand Down
4 changes: 2 additions & 2 deletions rope/refactor/change_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def get_changes(self, changers, in_hierarchy=False, resources=None,
task_handle=taskhandle.NullTaskHandle()):
"""Get changes caused by this refactoring
`changers` is a list of `_ArgumentChanger`\s. If `in_hierarchy`
`changers` is a list of `_ArgumentChanger`. If `in_hierarchy`
is `True` the changers are applyed to all matching methods in
the class hierarchy.
`resources` can be a list of `rope.base.resource.File`\s that
`resources` can be a list of `rope.base.resource.File` that
should be searched for occurrences; if `None` all python files
in the project are searched.
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/encapsulate_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_changes(self, getter=None, setter=None, resources=None,
same is true for `setter` and if it is None set_${field_name} is
used.
`resources` can be a list of `rope.base.resource.File`\s that
`resources` can be a list of `rope.base.resource.File` that
the refactoring should be applied on; if `None` all python
files in the project are searched.
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/importutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def handle_long_imports(self, pymodule, maxdots=2, maxlength=27,


def get_imports(project, pydefined):
"""A shortcut for getting the `ImportInfo`\s used in a scope"""
"""A shortcut for getting the `ImportInfo` used in a scope"""
pymodule = pydefined.get_module()
module = module_imports.ModuleImports(project, pymodule)
if pymodule == pydefined:
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/importutils/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def dispatch(self, import_):
class AddingVisitor(ImportInfoVisitor):
"""A class for adding imports
Given a list of `ImportInfo`\s, it tries to add each import to the
Given a list of `ImportInfo`, it tries to add each import to the
module and returns `True` and gives up when an import can be added
to older ones.
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/introduce_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_changes(self, factory_name, global_factory=False, resources=None,
be added. If `global_factory` is `True` the factory will be
global otherwise a static method is added to the class.
`resources` can be a list of `rope.base.resource.File`\s that
`resources` can be a list of `rope.base.resource.File` that
this refactoring should be applied on; if `None` all python
files in the project are searched.
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_changes(self, dest_attr, new_name=None, resources=None,
- `dest_attr`: the name of the destination attribute
- `new_name`: the name of the new method; if `None` uses
the old name
- `resources` can be a list of `rope.base.resources.File`\s to
- `resources` can be a list of `rope.base.resources.File` to
apply this refactoring on. If `None`, the restructuring
will be applied to all python files.
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_changes(self, new_name, in_file=None, in_hierarchy=False,
called with an instance of `occurrence.Occurrence` as
parameter. If it returns `True`, the occurrence is
considered to be a match.
- `resources` can be a list of `rope.base.resources.File`\s to
- `resources` can be a list of `rope.base.resources.File` to
apply this refactoring on. If `None`, the restructuring
will be applied to all python files.
- `in_file`: this argument has been deprecated; use
Expand Down
2 changes: 1 addition & 1 deletion rope/refactor/restructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_changes(self, checks=None, imports=None, resources=None,
task_handle=taskhandle.NullTaskHandle()):
"""Get the changes needed by this restructuring
`resources` can be a list of `rope.base.resources.File`\s to
`resources` can be a list of `rope.base.resources.File` to
apply the restructuring on. If `None`, the restructuring will
be applied to all python files.
Expand Down

0 comments on commit b4d3427

Please sign in to comment.