Browse Source

Fix typos. Closes #532

Veres Lajos 10 years ago
parent
commit
eaec6dc8f5

+ 2 - 2
CHANGES.txt

@@ -760,7 +760,7 @@
   "groupname", and "from_state" (the name of the previous state) in
   their serializations.
 
-  PROCESS_STATE_EXITED additionaly has "expected" (1 or 0) and "pid"
+  PROCESS_STATE_EXITED additionally has "expected" (1 or 0) and "pid"
   (the process id) in its serialization.
 
   PROCESS_STATE_RUNNING, PROCESS_STATE_STOPPING,
@@ -1067,7 +1067,7 @@
 - Some child processes may not have been shut down properly at
   supervisor shutdown time.
 
-- Move to ZPL-derived (but not ZPL) license availble from
+- Move to ZPL-derived (but not ZPL) license available from
   http://www.repoze.org/LICENSE.txt; it's slightly less restrictive
   than the ZPL (no servicemark clause).
 

+ 1 - 1
docs/configuration.rst

@@ -680,7 +680,7 @@ where specified.
 
   The number of serial failure attempts that :program:`supervisord`
   will allow when attempting to start the program before giving up and
-  puting the process into an ``FATAL`` state.  See
+  putting the process into an ``FATAL`` state.  See
   :ref:`process_states` for explanation of the ``FATAL`` state.
 
   *Default*: 3

+ 2 - 2
docs/events.rst

@@ -265,7 +265,7 @@ by a line feed, followed by the result content.  For example,
 listener will use either ``OK`` or ``FAIL`` as the result content.
 These strings have special meaning to the default result handler.
 
-If the defaut result handler receives ``OK`` as result content, it
+If the default result handler receives ``OK`` as result content, it
 will assume that the listener processed the event notification
 successfully.  If it receives ``FAIL``, it will assume that the
 listener has failed to process the event, and the event will be
@@ -343,7 +343,7 @@ in" to Supervisor.  As such, event listeners can impact the state of a
 Supervisor subprocess as a result of receiving an event notification.
 For example, you may want to generate an event every few minutes
 related to process usage of Supervisor-controlled subprocesses, and if
-any of those processes exceed some memory threshhold, you would like
+any of those processes exceed some memory threshold, you would like
 to restart it.  You would write a program that caused supervisor to
 generate ``PROCESS_COMMUNICATION`` events every so often with memory
 information in them, and an event listener to perform an action based

+ 2 - 2
docs/installing.rst

@@ -46,7 +46,7 @@ finally install Supervisor itself.
 .. note::
 
    Depending on the permissions of your system's Python, you might
-   need to be the root user to sucessfully invoke ``python
+   need to be the root user to successfully invoke ``python
    setup.py install``.
 
 Installing To A System Without Internet Access
@@ -80,7 +80,7 @@ Finally, run supervisor's ``python setup.py install``.
 
    Depending on the permissions of your system's Python, you might
    need to be the root user to invoke ``python setup.py install``
-   sucessfully for each package.
+   successfully for each package.
 
 Installing a Distribution Package
 ---------------------------------

+ 1 - 1
docs/subprocess.rst

@@ -184,7 +184,7 @@ the ``user=`` program config option.  If you need to set environment
 variables for a particular program that might otherwise be set by a
 shell invocation for a particular user, you must do it explicitly
 within the ``environment=`` program config option.  An
-example of setting these enviroment variables is as below.
+example of setting these environment variables is as below.
 
 .. code-block:: ini
 

+ 1 - 1
supervisor/medusa/docs/programming.html

@@ -396,7 +396,7 @@ log: closing channel 4:<http_client connected at 80ef3e8>
       The <code>handle_connect</code> method no longer assumes it can
       send its request string successfully.  We move its work over to
       <code>handle_write</code>; which trims <code>self.buffer</code>
-      as pieces of it are sent succesfully.
+      as pieces of it are sent successfully.
 
     <p>
       We also introduce the <code>writable</code> method.  Each time

+ 2 - 2
supervisor/tests/test_datatypes.py

@@ -332,7 +332,7 @@ class ExistingDirectoryTests(unittest.TestCase):
         self.assertEqual(path, self._callFUT(path))
 
     def test_dir_does_not_exist(self):
-        path = os.path.join(os.path.dirname(__file__), 'nonexistant')
+        path = os.path.join(os.path.dirname(__file__), 'nonexistent')
         try:
             self._callFUT(path)
             self.fail()
@@ -373,7 +373,7 @@ class ExistingDirpathTests(unittest.TestCase):
         self.assertEqual(self._callFUT('foo'), 'foo')
 
     def test_raises_if_dir_does_not_exist(self):
-        path = os.path.join(os.path.dirname(__file__), 'nonexistant', 'foo')
+        path = os.path.join(os.path.dirname(__file__), 'nonexistent', 'foo')
         try:
             self._callFUT(path)
             self.fail()

+ 8 - 8
supervisor/tests/test_options.py

@@ -806,11 +806,11 @@ class ServerOptionsTests(unittest.TestCase):
         [supervisord]
 
         [include]
-        files=nonexistant/*
+        files=nonexistent/*
         """)
         instance.read_config(StringIO(text))
         self.assertEqual(instance.parse_warnings,
-                         ['No file matches via include "./nonexistant/*"'])
+                         ['No file matches via include "./nonexistent/*"'])
 
     def test_read_config_include_reads_extra_files(self):
         dirname = tempfile.mkdtemp()
@@ -1927,7 +1927,7 @@ class ServerOptionsTests(unittest.TestCase):
         [eventlistener:cat]
         events=PROCESS_COMMUNICATION
         command = /bin/cat
-        result_handler = supervisor.tests.base:nonexistant
+        result_handler = supervisor.tests.base:nonexistent
         """)
         from supervisor.options import UnhosedConfigParser
         config = UnhosedConfigParser()
@@ -1938,7 +1938,7 @@ class ServerOptionsTests(unittest.TestCase):
             self.fail('nothing raised')
         except ValueError as exc:
             self.assertEqual(exc.args[0],
-                'supervisor.tests.base:nonexistant cannot be '
+                'supervisor.tests.base:nonexistent cannot be '
                 'resolved within [eventlistener:cat]')
 
     def test_event_listener_pool_noeventsline(self):
@@ -2408,7 +2408,7 @@ class ServerOptionsTests(unittest.TestCase):
     def test_rpcinterfaces_from_parser_factory_not_importable(self):
         text = lstrip("""\
         [rpcinterface:dummy]
-        supervisor.rpcinterface_factory = nonexistant
+        supervisor.rpcinterface_factory = nonexistent
         """)
         from supervisor.options import UnhosedConfigParser
         config = UnhosedConfigParser()
@@ -2420,7 +2420,7 @@ class ServerOptionsTests(unittest.TestCase):
                                  'rpcinterface:')
             self.fail('nothing raised')
         except ValueError as exc:
-            self.assertEqual(exc.args[0], 'nonexistant cannot be resolved '
+            self.assertEqual(exc.args[0], 'nonexistent cannot be resolved '
                 'within [rpcinterface:dummy]')
 
     def test_clear_autochildlogdir(self):
@@ -2940,12 +2940,12 @@ class UnhosedConfigParserTests(unittest.TestCase):
         self.assertEqual(ok_filenames, [f.name])
 
     def test_read_returns_ok_filenames_like_rawconfigparser(self):
-        nonexistant = os.path.join(os.path.dirname(__file__), "nonexistant")
+        nonexistent = os.path.join(os.path.dirname(__file__), "nonexistent")
         parser = self._makeOne()
         with tempfile.NamedTemporaryFile(mode="w+") as f:
             f.write("[foo]\n")
             f.flush()
-            ok_filenames = parser.read([nonexistant, f.name])
+            ok_filenames = parser.read([nonexistent, f.name])
         self.assertEqual(ok_filenames, [f.name])
 
     def test_read_section_to_file_initially_empty(self):

+ 2 - 2
supervisor/tests/test_rpcinterfaces.py

@@ -1248,7 +1248,7 @@ class SupervisorNamespaceXMLRPCInterfaceTests(TestBase):
         supervisord = DummySupervisor()
         interface = self._makeOne(supervisord)
         self._assertRPCError(xmlrpc.Faults.BAD_NAME,
-                             interface.getProcessInfo, 'nonexistant')
+                             interface.getProcessInfo, 'nonexistent')
 
     def test_getProcessInfo_bad_name_when_no_process(self):
         from supervisor import xmlrpc
@@ -1839,7 +1839,7 @@ class SupervisorNamespaceXMLRPCInterfaceTests(TestBase):
         from supervisor import xmlrpc
         self._assertRPCError(xmlrpc.Faults.BAD_NAME,
                              interface.sendProcessStdin,
-                             'nonexistant', 'chars for stdin')
+                             'nonexistent', 'chars for stdin')
 
     def test_sendProcessStdin_raises_bad_name_when_no_process(self):
         options = DummyOptions()