1. 25 Jul, 2019 2 commits
  2. 24 Jul, 2019 9 commits
  3. 23 Jul, 2019 5 commits
  4. 22 Jul, 2019 3 commits
    • Neil Schemenauer's avatar
      bpo-36044: Reduce number of unit tests run for PGO build (GH-14702) · 4e16a4a3
      Neil Schemenauer authored
      Reduce the number of unit tests run for the PGO generation task.  This
      speeds up the task by a factor of about 15x.  Running the full unit test
      suite is slow.  This change may result in a slightly less optimized build
      since not as many code branches will be executed.  If you are willing to
      wait for the much slower build, the old behavior can be restored using
      './configure [..] PROFILE_TASK="-m test --pgo-extended"'.  We make no
      guarantees as to which PGO task set produces a faster build.  Users who
      care should run their own relevant benchmarks as results can depend on
      the environment, workload, and compiler tool chain.
      4e16a4a3
    • Vinay Sajip's avatar
      Update logging cookbook to show multiple worker processes using the... · d309352c
      Vinay Sajip authored
      Update logging cookbook to show multiple worker processes using the concurrent.futures module. (#14905)
      
      d309352c
    • Xtreak's avatar
      bpo-21478: Record calls to parent when autospecced objects are used as child... · 7397cda9
      Xtreak authored
      bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688)
      
      * Clear name and parent of mock in autospecced objects used with attach_mock
      
      * Add NEWS entry
      
      * Fix reversed order of comparison
      
      * Test child and standalone function calls
      
      * Use a helper function extracting mock to avoid code duplication and refactor tests.
      7397cda9
  5. 21 Jul, 2019 8 commits
  6. 20 Jul, 2019 1 commit
  7. 19 Jul, 2019 4 commits
  8. 18 Jul, 2019 5 commits
  9. 17 Jul, 2019 3 commits
    • jpic's avatar
      bpo-34155: Dont parse domains containing @ (GH-13079) · 8cb65d13
      jpic authored
      
      
      Before:
          
              >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
              (Address(display_name='', username='a', domain='malicious.org'),)
          
              >>> parseaddr('a@malicious.org@important.com')
              ('', 'a@malicious.org')
          
          After:
          
              >>> email.message_from_string('From: a@malicious.org@important.com', policy=email.policy.default)['from'].addresses
              (Address(display_name='', username='', domain=''),)
          
              >>> parseaddr('a@malicious.org@important.com')
              ('', 'a@')
      
      
      
      
      https://bugs.python.org/issue34155
      8cb65d13
    • Abhilash Raj's avatar
      Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14813) · 719a062b
      Abhilash Raj authored
      This exception was caused because the input ended unexpectedly with only one
      single quote instead of a pair with some value inside it.
      719a062b
    • Abhilash Raj's avatar
      bpo-37461: Fix infinite loop in parsing of specially crafted email headers (GH-14794) · a4a994bd
      Abhilash Raj authored
      * bpo-37461: Fix infinite loop in parsing of specially crafted email headers.
      
      Some crafted email header would cause the get_parameter method to run in an
      infinite loop causing a DoS attack surface when parsing those headers. This
      patch fixes that by making sure the DQUOTE character is handled to prevent
      going into an infinite loop.
      a4a994bd