diff --git a/mixer/_compat.py b/mixer/_compat.py index ff195d6..86bfc75 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 59a8395..6f30a5d 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 176f89d..8846d15 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 87cf702..1dd21d6 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()