Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #169

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mixer/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion mixer/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class MixerProxy(object):

""" Load mixer for class automaticly.
""" Load mixer for class automatically.

::

Expand Down
4 changes: 2 additions & 2 deletions mixer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mixer/markov.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down