From b1ccee7b934426fef0f5ded9f76169457faa0713 2018-08-27 23:08:13 From: luz.paz Date: 2018-08-27 23:08:13 Subject: [PATCH] Misc. typo fixes Found via `codespell -q 3` --- diff --git a/IPython/core/compilerop.py b/IPython/core/compilerop.py index 19b5596..1744c20 100644 --- a/IPython/core/compilerop.py +++ b/IPython/core/compilerop.py @@ -40,7 +40,7 @@ import time # Constants #----------------------------------------------------------------------------- -# Roughtly equal to PyCF_MASK | PyCF_MASK_OBSOLETE as defined in pythonrun.h, +# Roughly equal to PyCF_MASK | PyCF_MASK_OBSOLETE as defined in pythonrun.h, # this is used as a bitmask to extract future-related code flags. PyCF_MASK = functools.reduce(operator.or_, (getattr(__future__, fname).compiler_flag diff --git a/IPython/core/hooks.py b/IPython/core/hooks.py index 7cf250a..66a544d 100644 --- a/IPython/core/hooks.py +++ b/IPython/core/hooks.py @@ -174,7 +174,7 @@ class CommandChainDispatcher: def shutdown_hook(self): """ default shutdown hook - Typically, shotdown hooks should raise TryNext so all shutdown ops are done + Typically, shutdown hooks should raise TryNext so all shutdown ops are done """ #print "default shutdown hook ok" # dbg diff --git a/IPython/core/prefilter.py b/IPython/core/prefilter.py index 255d42a..b33bc9c 100644 --- a/IPython/core/prefilter.py +++ b/IPython/core/prefilter.py @@ -82,7 +82,7 @@ class PrefilterManager(Configurable): prefilter consumes lines of input and produces transformed lines of input. - The iplementation consists of two phases: + The implementation consists of two phases: 1. Transformers 2. Checkers and handlers diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index 90a8c78..139d690 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -765,7 +765,7 @@ if _env_type is not dict: try: # In PyPy, types.DictProxyType is dict, setting the dictproxy printer - # using dict.setdefault avoids overwritting the dict printer + # using dict.setdefault avoids overwriting the dict printer _type_pprinters.setdefault(types.DictProxyType, _dict_pprinter_factory('dict_proxy({', '})')) _type_pprinters[types.ClassType] = _type_pprint diff --git a/IPython/testing/plugin/test_refs.py b/IPython/testing/plugin/test_refs.py index 50d0857..98fc64b 100644 --- a/IPython/testing/plugin/test_refs.py +++ b/IPython/testing/plugin/test_refs.py @@ -21,7 +21,7 @@ def doctest_run(): """ def doctest_runvars(): - """Test that variables defined in scripts get loaded correcly via %run. + """Test that variables defined in scripts get loaded correclty via %run. In [13]: run simplevars.py x is: 1