From 6d2e601c33c9f99ce81a65efcdfdc195045ce403 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Fri, 29 Jul 2022 22:03:22 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - mixer/_compat.py - mixer/auto.py - mixer/main.py - mixer/markov.py Fixes: - Should read `happened` rather than `happend`. - Should read `deprecated` rather than `depricated`. - Should read `constructing` rather than `contructing`. - Should read `automatically` rather than `automaticly`. Signed-off-by: Tim Gates --- mixer/_compat.py | 2 +- mixer/auto.py | 2 +- mixer/main.py | 4 ++-- mixer/markov.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mixer/_compat.py b/mixer/_compat.py index ff195d60..86bfc754 100644 --- a/mixer/_compat.py +++ b/mixer/_compat.py @@ -74,7 +74,7 @@ def __new__(cls, name, this_bases, d): # breaks the __exit__ function in a very peculiar way. This is currently # true for pypy 2.2.1 for instance. The second level of exception blocks # is necessary because pypy seems to forget to check if an exception -# happend until the next bytecode instruction? +# happened until the next bytecode instruction? BROKEN_PYPY_CTXMGR_EXIT = False if hasattr(sys, 'pypy_version_info'): class _Mgr(object): diff --git a/mixer/auto.py b/mixer/auto.py index 59a83955..6f30a5de 100644 --- a/mixer/auto.py +++ b/mixer/auto.py @@ -6,7 +6,7 @@ class MixerProxy(object): - """ Load mixer for class automaticly. + """ Load mixer for class automatically. :: diff --git a/mixer/main.py b/mixer/main.py index 176f89d5..8846d15a 100644 --- a/mixer/main.py +++ b/mixer/main.py @@ -425,7 +425,7 @@ def __getattr__(self, name): raise AttributeError('Use "cycle" only for "blend"') -# Support depricated attributes +# Support deprecated attributes class _MetaMixer(type): FAKE = property(lambda cls: t.Fake()) @@ -479,7 +479,7 @@ def __init__(self, fake=True, factory=None, loglevel=LOGLEVEL, def __getattr__(self, name): if name in ['f', 'g', 'fake', 'random', 'mix', 'select']: - warnings.warn('"mixer.%s" is depricated, use "mixer.%s" instead.' + warnings.warn('"mixer.%s" is deprecated, use "mixer.%s" instead.' % (name, name.upper()), stacklevel=2) name = name.upper() return getattr(self, name) diff --git a/mixer/markov.py b/mixer/markov.py index 87cf702c..1dd21d66 100644 --- a/mixer/markov.py +++ b/mixer/markov.py @@ -106,7 +106,7 @@ def generateString(self): def generateStringWithSeed(self, seed): """ Generate a "sentence" with the database and a given word """ - # using str.split here means we're contructing the list in memory + # using str.split here means we're constructing the list in memory # but as the generated sentence only depends on the last word of the seed # I'm assuming seeds tend to be rather short. words = seed.split()