]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27430: Fix typos, patch by scop.
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 1 Jul 2016 09:17:05 +0000 (12:17 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 1 Jul 2016 09:17:05 +0000 (12:17 +0300)
Doc/whatsnew/3.2.rst
Lib/smtplib.py
Lib/unittest/test/test_case.py
Misc/NEWS

index baaf797e31d5458a536627966f4a94f55cf882bc..975b59df8a7338dc17dc447efb67f62b58079432 100644 (file)
@@ -2666,7 +2666,7 @@ require changes to your code:
 
 * The :class:`xml.etree.ElementTree` class now raises an
   :exc:`xml.etree.ElementTree.ParseError` when a parse fails. Previously it
-  raised a :exc:`xml.parsers.expat.ExpatError`.
+  raised an :exc:`xml.parsers.expat.ExpatError`.
 
 * The new, longer :func:`str` value on floats may break doctests which rely on
   the old output format.
index dfbf5f93249895f1ceeb04d3066e000400233b54..5b9e66536a899cce211b08520704068319edde0f 100755 (executable)
@@ -900,7 +900,7 @@ class SMTP:
         the recipient addresses contain non-ASCII and the server advertises the
         SMTPUTF8 capability, the policy is cloned with utf8 set to True for the
         serialization, and SMTPUTF8 and BODY=8BITMIME are asserted on the send.
-        If the server does not support SMTPUTF8, an SMPTNotSupported error is
+        If the server does not support SMTPUTF8, an SMTPNotSupported error is
         raised.  Otherwise the generator is called without modifying the
         policy.
 
index 1fb95dce2f9ca0d951659bd379aad4a59af900fa..8f752b8ae0d0e238c9fb217dd0adfc69dc4e45be 100644 (file)
@@ -339,7 +339,7 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
         self._check_call_order__subtests(result, events, expected)
 
     def test_run_call_order__subtests_legacy(self):
-        # With a legacy result object (without a addSubTest method),
+        # With a legacy result object (without an addSubTest method),
         # text execution stops after the first subtest failure.
         events = []
         result = LegacyLoggingResult(events)
index f8ed7acd3d05f777a6e5a97e8ce66890fc9690a8..935f81ea2814f122429034dca0b080088c208c96 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -240,7 +240,7 @@ Library
 
 - Issue #26556: Update expat to 2.1.1, fixes CVE-2015-1283.
 
-- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772.  Reported by Team
+- Fix TLS stripping vulnerability in smtplib, CVE-2016-0772.  Reported by Team
   Oststrom
 
 - Issue #21386: Implement missing IPv4Address.is_global property.  It was