Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
minho42 committed Aug 13, 2019
1 parent 4842416 commit 79c601b
Show file tree
Hide file tree
Showing 24 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion IPython/core/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def format_display_data(obj, include=None, exclude=None):
format data dict. If this is set *only* the format types included
in this list will be computed.
exclude : list or tuple, optional
A list of format type string (MIME types) to exclue in the format
A list of format type string (MIME types) to exclude in the format
data dict. If this is set all format types will be computed,
except for those included in this argument.
"""
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/interactiveshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,7 @@ async def run_ast_nodes(self, nodelist:ListType[AST], cell_name:str, interactivi
Experimental value: 'async' Will try to run top level interactive
async/await code in default runner, this will not respect the
interactivty setting and will only run the last node if it is an
interactivity setting and will only run the last node if it is an
expression.
compiler : callable
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/magics/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ def timeit(self, line='', cell=None, local_ns=None):
if not quiet :
# Check best timing is greater than zero to avoid a
# ZeroDivisionError.
# In cases where the slowest timing is lesser than a micosecond
# In cases where the slowest timing is lesser than a microsecond
# we assume that it does not really matter if the fastest
# timing is 4 times faster than the slowest timing or not.
if worst > 4 * best and best > 0 and worst > 1e-6:
Expand Down
6 changes: 3 additions & 3 deletions IPython/core/magics/osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, shell=None, **kwargs):
@skip_doctest
def _isexec_POSIX(self, file):
"""
Test for executible on a POSIX system
Test for executable on a POSIX system
"""
if os.access(file.path, os.X_OK):
# will fail on maxOS if access is not X_OK
Expand All @@ -70,14 +70,14 @@ def _isexec_POSIX(self, file):
@skip_doctest
def _isexec_WIN(self, file):
"""
Test for executible file on non POSIX system
Test for executable file on non POSIX system
"""
return file.is_file() and self.execre.match(file.name) is not None

@skip_doctest
def isexec(self, file):
"""
Test for executible file on non POSIX system
Test for executable file on non POSIX system
"""
if self.is_posix:
return self._isexec_POSIX(file)
Expand Down
8 changes: 4 additions & 4 deletions IPython/core/tests/test_completerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ def tearDown(self):
shutil.rmtree(self.BASETESTDIR)

def test_1(self):
"""Test magic_run_completer, should match two alterntives
"""Test magic_run_completer, should match two alternatives
"""
event = MockEvent(u"%run a")
mockself = None
match = set(magic_run_completer(mockself, event))
self.assertEqual(match, {u"a.py", u"aao.py", u"adir/"})

def test_2(self):
"""Test magic_run_completer, should match one alterntive
"""Test magic_run_completer, should match one alternative
"""
event = MockEvent(u"%run aa")
mockself = None
Expand Down Expand Up @@ -102,7 +102,7 @@ def tearDown(self):

@onlyif_unicode_paths
def test_1(self):
"""Test magic_run_completer, should match two alterntives
"""Test magic_run_completer, should match two alternatives
"""
event = MockEvent(u"%run a")
mockself = None
Expand All @@ -111,7 +111,7 @@ def test_1(self):

@onlyif_unicode_paths
def test_2(self):
"""Test magic_run_completer, should match one alterntive
"""Test magic_run_completer, should match one alternative
"""
event = MockEvent(u"%run aa")
mockself = None
Expand Down
2 changes: 1 addition & 1 deletion IPython/core/tests/test_displayhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_interactivehooks_ast_modes():
finally:
ip.ast_node_interactivity = saved_mode

def test_interactivehooks_ast_modes_semi_supress():
def test_interactivehooks_ast_modes_semi_suppress():
"""
Test that ast nodes can be triggered with different modes and suppressed
by semicolon
Expand Down
6 changes: 3 additions & 3 deletions IPython/core/tests/test_interactiveshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class TestSystemRaw(ExitCodeChecks):

def setUp(self):
super().setUp()
self.sytem = ip.system_raw
self.system = ip.system_raw

@onlyif_unicode_paths
def test_1(self):
Expand All @@ -590,7 +590,7 @@ class TestSystemPipedExitCode(ExitCodeChecks):

def setUp(self):
super().setUp()
self.sytem = ip.system_piped
self.system = ip.system_piped

@skip_win32
def test_exit_code_ok(self):
Expand Down Expand Up @@ -914,7 +914,7 @@ def test_syntaxerror_input_transformer(self):
ip.run_cell('3456')


class TestWarningSupression(unittest.TestCase):
class TestWarningSuppression(unittest.TestCase):
def test_warning_suppression(self):
ip.run_cell("import warnings")
try:
Expand Down
2 changes: 1 addition & 1 deletion IPython/external/qt_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def load_qt(api_options):
Raises
------
ImportError, if it isn't possible to import any requested
bindings (either becaues they aren't installed, or because
bindings (either because they aren't installed, or because
an incompatible library has already been installed)
"""
loaders = {
Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/deepreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def deep_import_hook(name, globals=None, locals=None, fromlist=None, level=-1):

def deep_reload_hook(m):
"""Replacement for reload()."""
# Hardcode this one as it would raise a NotImplemeentedError from the
# Hardcode this one as it would raise a NotImplementedError from the
# bowels of Python and screw up the import machinery after.
# unlike other imports the `exclude` list already in place is not enough.

Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def _get_display_formatter(self,
substituted for the first and fname will be substituted for the
second
fp_format: string to use for formatting filepaths, must contain
exactly two "%s" and the dirname will be subsituted for the first
exactly two "%s" and the dirname will be substituted for the first
and fname will be substituted for the second
"""
def f(dirname, fnames, included_suffixes=None):
Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/inputhookgtk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
"""
Enable pygtk to be used interacive by setting PyOS_InputHook.
Enable pygtk to be used interactively by setting PyOS_InputHook.
Authors: Brian Granger
"""
Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/inputhookgtk3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
"""
Enable Gtk3 to be used interacive by IPython.
Enable Gtk3 to be used interactively by IPython.
Authors: Thomi Richards
"""
Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/inputhookpyglet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
"""
Enable pyglet to be used interacive by setting PyOS_InputHook.
Enable pyglet to be used interactively by setting PyOS_InputHook.
Authors
-------
Expand Down
2 changes: 1 addition & 1 deletion IPython/lib/inputhookwx.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8

"""
Enable wxPython to be used interacive by setting PyOS_InputHook.
Enable wxPython to be used interactively by setting PyOS_InputHook.
Authors: Robin Dunn, Brian Granger, Ondrej Certik
"""
Expand Down
8 changes: 4 additions & 4 deletions IPython/lib/tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def test_instantiation_FileLink():
if sys.version_info >= (3, 6):
fl = display.FileLink(pathlib.PurePath('example.txt'))

def test_warning_on_non_existant_path_FileLink():
"""FileLink: Calling _repr_html_ on non-existant files returns a warning
def test_warning_on_non_existent_path_FileLink():
"""FileLink: Calling _repr_html_ on non-existent files returns a warning
"""
fl = display.FileLink('example.txt')
nt.assert_true(fl._repr_html_().startswith('Path (<tt>example.txt</tt>)'))
Expand Down Expand Up @@ -91,8 +91,8 @@ def test_instantiation_FileLinks():
"""
fls = display.FileLinks('example')

def test_warning_on_non_existant_path_FileLinks():
"""FileLinks: Calling _repr_html_ on non-existant files returns a warning
def test_warning_on_non_existent_path_FileLinks():
"""FileLinks: Calling _repr_html_ on non-existent files returns a warning
"""
fls = display.FileLinks('example')
nt.assert_true(fls._repr_html_().startswith('Path (<tt>example</tt>)'))
Expand Down
8 changes: 4 additions & 4 deletions IPython/sphinxext/ipython_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@
from IPython import InteractiveShell
from IPython.core.profiledir import ProfileDir

use_matpltolib = False
use_matplotlib = False
try:
import matplotlib
use_matpltolib = True
use_matplotlib = True
except Exception:
pass

Expand Down Expand Up @@ -934,7 +934,7 @@ def setup(self):
# EmbeddedSphinxShell is created, its interactive shell member
# is the same for each instance.

if mplbackend and 'matplotlib.backends' not in sys.modules and use_matpltolib:
if mplbackend and 'matplotlib.backends' not in sys.modules and use_matplotlib:
import matplotlib
matplotlib.use(mplbackend)

Expand Down Expand Up @@ -1065,7 +1065,7 @@ def setup(app):
# If the user sets this config value to `None`, then EmbeddedSphinxShell's
# __init__ method will treat it as [].
execlines = ['import numpy as np']
if use_matpltolib:
if use_matplotlib:
execlines.append('import matplotlib.pyplot as plt')
app.add_config_value('ipython_execlines', execlines, 'env')

Expand Down
2 changes: 1 addition & 1 deletion IPython/terminal/pt_inputhooks/wx.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Enable wxPython to be used interacively in prompt_toolkit
"""Enable wxPython to be used interactively in prompt_toolkit
"""

import sys
Expand Down
2 changes: 1 addition & 1 deletion IPython/utils/tests/test_tokenutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_line_at_cursor():
nt.assert_equal(line, "pri")
nt.assert_equal(offset, 4)

def test_muliline_statement():
def test_multiline_statement():
cell = """a = (1,
3)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/whatsnew/version0.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Highlights of this release:
in remote tasks, as well as providing better control for remote task IDs.

- New IPython Sphinx directive contributed by John Hunter. You can use this
directive to mark blocks in reSructuredText documents as containing IPython
directive to mark blocks in reStructuredText documents as containing IPython
syntax (including figures) and the will be executed during the build:

.. sourcecode:: ipython
Expand Down
2 changes: 1 addition & 1 deletion docs/source/whatsnew/version0.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ cycle from several institutions:
.. __: http://modular.math.washington.edu/grants/compmath09

- Microsoft's team working on `Python Tools for Visual Studio`__ developed the
integraton of IPython into the Python plugin for Visual Studio 2010.
integratron of IPython into the Python plugin for Visual Studio 2010.

.. __: http://pytools.codeplex.com

Expand Down
4 changes: 2 additions & 2 deletions docs/source/whatsnew/version0.9.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ New features

* A new, still experimental but highly functional, WX shell by Gael Varoquaux.
This work was sponsored by Enthought, and while it's still very new, it is
based on a more cleanly organized arhictecture of the various IPython
based on a more cleanly organized architecture of the various IPython
components. We will continue to develop this over the next few releases as a
model for GUI components that use IPython.

Expand Down Expand Up @@ -69,7 +69,7 @@ New features
method that has the same syntax as the built-in `map`. We have also defined
a `mapper` factory interface that creates objects that implement
:class:`IPython.kernel.mapper.IMapper` for different controllers. Both the
multiengine and task controller now have mapping capabilties.
multiengine and task controller now have mapping capabilities.

* The parallel function capabilities have been reworks. The major changes are
that i) there is now an `@parallel` magic that creates parallel functions,
Expand Down
2 changes: 1 addition & 1 deletion docs/source/whatsnew/version2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Backwards incompatible changes
Python versions are now 2.7 and 3.3.
* The Transformer classes have been renamed to Preprocessor in nbconvert and
their ``call`` methods have been renamed to ``preprocess``.
* The ``call`` methods of nbconvert post-processsors have been renamed to
* The ``call`` methods of nbconvert post-processors have been renamed to
``postprocess``.

* The module ``IPython.core.fakemodule`` has been removed.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/whatsnew/version7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ preserves prior behavior of normalizing the audio to the maximum possible range.
Setting to `False` disables normalization.


Miscelanious
Miscellaneous
------------

- Fix improper acceptation of ``return`` outside of functions. :ghpull:`11641`.
Expand Down
2 changes: 1 addition & 1 deletion setupext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# load extended setup modules for distuils
# load extended setup modules for distutils

from .install_data_ext import install_data_ext

0 comments on commit 79c601b

Please sign in to comment.