Fix typos (#251)

Co-authored-by: Michael Howitz <mh@gocept.com>
This commit is contained in:
Kian-Meng Ang 2022-01-25 15:12:30 +08:00 committed by GitHub
parent 67a4f6f7f2
commit 7128155b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 18 additions and 17 deletions

View File

@ -970,14 +970,14 @@ Bug Fixes
3.2.0 (2006-01-05)
==================
- Corresponds to the verison of the zope.interface package shipped as part of
- Corresponds to the version of the zope.interface package shipped as part of
the Zope 3.2.0 release.
3.1.0 (2005-10-03)
==================
- Corresponds to the verison of the zope.interface package shipped as part of
- Corresponds to the version of the zope.interface package shipped as part of
the Zope 3.1.0 release.
- Made attribute resolution order consistent with component lookup order,
@ -990,7 +990,7 @@ Bug Fixes
3.0.1 (2005-07-27)
==================
- Corresponds to the verison of the zope.interface package shipped as part of
- Corresponds to the version of the zope.interface package shipped as part of
the Zope X3.0.1 release.
- Fix a bug reported by James Knight, which caused adapter registries
@ -1000,5 +1000,5 @@ Bug Fixes
3.0.0 (2004-11-07)
==================
- Corresponds to the verison of the zope.interface package shipped as part of
- Corresponds to the version of the zope.interface package shipped as part of
the Zope X3.0.0 release.

View File

@ -48,6 +48,7 @@ build_script:
test_script:
- python -m unittest discover -s src
artifacts:
- path: 'dist\*.whl'
name: wheel

View File

@ -130,7 +130,7 @@ If we register an object that provides ``IProvideBase``:
>>> registry.register([IRequireBase], IProvideBase, '', 'Base->Base')
then that object will be prefered over ``O('Base->Child')``:
then that object will be preferred over ``O('Base->Child')``:
.. doctest::

View File

@ -53,7 +53,7 @@ All four share a common base interface.
.. autointerface:: zope.interface.interfaces.IRegistration
* Utilties
* Utilities
.. autointerface:: zope.interface.interfaces.IUtilityRegistration
.. autoclass:: zope.interface.registry.UtilityRegistration

View File

@ -56,7 +56,7 @@ environment:
$ /tmp/hack-zope.interface/bin/python setup.py develop
Finally, run the tests using the build-in ``setuptools`` testrunner:
Finally, run the tests using the built-in ``setuptools`` testrunner:
.. code-block:: sh

View File

@ -682,7 +682,7 @@ static PyTypeObject CPBType = {
/*
def __adapt__(self, obj):
"""Adapt an object to the reciever
"""Adapt an object to the receiver
"""
if self.providedBy(obj):
return obj
@ -776,7 +776,7 @@ typedef struct {
static struct PyMethodDef ib_methods[] = {
{"__adapt__", (PyCFunction)__adapt__, METH_O,
"Adapt an object to the reciever"},
"Adapt an object to the receiver"},
{NULL, NULL} /* sentinel */
};
@ -1267,7 +1267,7 @@ _lookup(lookup *self,
}
/* If `required` is a lazy sequence, it could have arbitrary side-effects,
such as clearing our caches. So we must not retreive the cache until
such as clearing our caches. So we must not retrieve the cache until
after resolving it. */
required = PySequence_Tuple(required);
if (required == NULL)

View File

@ -591,7 +591,7 @@ class BaseAdapterRegistry(object):
self.subscribe(*args)
# XXX hack to fake out twisted's use of a private api. We need to get them
# to use the new registed method.
# to use the new registered method.
def get(self, _): # pragma: no cover
class XXXTwistedFakeOut:
selfImplied = {}

View File

@ -1294,7 +1294,7 @@ def _normalizeargs(sequence, output=None):
Normalization arguments might contain Declarions, tuples, or single
interfaces.
Anything but individial interfaces or implements specs will be expanded.
Anything but individual interfaces or implements specs will be expanded.
"""
if output is None:
output = []

View File

@ -43,7 +43,7 @@ class _TargetInvalid(Invalid):
# of the two values in ``self.args``. *target* uses a marker object to
# distinguish "not given" from "given, but None", because the latter
# can be a value that gets passed to validation. For this reason, it must
# always be the last argument (we detect absense by the ``IndexError``).
# always be the last argument (we detect absence by the ``IndexError``).
_IX_INTERFACE = 0
_IX_TARGET = 1

View File

@ -1076,7 +1076,7 @@ class IObjectEvent(Interface):
"""An event related to an object.
The object that generated this event is not necessarily the object
refered to by location.
referred to by location.
"""
object = Attribute("The subject of the event.")
@ -1139,7 +1139,7 @@ class IComponentLookup(Interface):
"""Get subscribers
Subscribers are returned that provide the provided interface
and that depend on and are comuted from the sequence of
and that depend on and are computed from the sequence of
required objects.
"""

View File

@ -563,7 +563,7 @@ class SpecificationTests(unittest.TestCase):
def test_multiple_inheritance_no_interfaces(self):
# If we extend an object that implements interfaces,
# plus ane that doesn't, we do not interject `Interface`
# plus one that doesn't, we do not interject `Interface`
# early in the resolution order. It stays at the end,
# like it should.
# See https://github.com/zopefoundation/zope.interface/issues/8

View File

@ -196,7 +196,7 @@ class Test(unittest.TestCase):
# class A(Odd):
# classProvides(I1)
# except TypeError:
# pass # Sucess
# pass # Success
# self.assert_(False,
# "Shouldn't be able to use directlyProvides on odd class."
# )