1. 23 Aug, 2019 11 commits
  2. 22 Aug, 2019 9 commits
  3. 21 Aug, 2019 17 commits
    • Steve Dower's avatar
    • Steve Dower's avatar
      bpo-36311: Fixes decoding multibyte characters around chunk boundaries and... · 7ebdda0d
      Steve Dower authored
      bpo-36311: Fixes decoding multibyte characters around chunk boundaries and improves decoding performance (GH-15083)
      
      7ebdda0d
    • bsiem's avatar
      bpo-37482: Fix email address name with encoded words and special chars (GH-14561) · df0c21ff
      bsiem authored
      
      
      Special characters in email address header display names are normally
      put within double quotes. However, encoded words (=?charset?x?...?=) are
      not allowed withing double quotes. When the header contains a word with
      special characters and another word that must be encoded, the first one
      must also be encoded.
      
      In the next example, the display name in the From header is quoted and
      therefore the comma is allowed; in the To header, the comma is not
      within quotes and not encoded, which is not allowed and therefore
      rejected by some mail servers.
      
      From: "Foo Bar, France" <foo@example.com>
      To: Foo Bar, =?utf-8?q?Espa=C3=B1a?= <foo@example.com>
      
      
      
      
      
      https://bugs.python.org/issue37482
      df0c21ff
    • Brett Cannon's avatar
      bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__... · 48ede6b8
      Brett Cannon authored
      bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__ for prompt customization (GH-14941)
      
      The activation scripts generated by venv were inconsistent in how they changed the shell's prompt. Some used `__VENV_PROMPT__` exclusively, some used `__VENV_PROMPT__` if it was set even though by default `__VENV_PROMPT__` is always set and the fallback matched the default, and one ignored `__VENV_PROMPT__` and used `__VENV_NAME__` instead (and even used a differing format to the default prompt). This change now has all activation scripts use `__VENV_PROMPT__` only and relies on the fact that venv sets that value by default.
      
      The color of the customization is also now set in fish to the blue from the Python logo for as hex color support is built into that shell (much like PowerShell where the built-in green color is used).
      48ede6b8
    • Steve Dower's avatar
      bpo-37834: Normalise handling of reparse points on Windows (GH-15231) · df2d4a6f
      Steve Dower authored
      bpo-37834: Normalise handling of reparse points on Windows
      * ntpath.realpath() and nt.stat() will traverse all supported reparse points (previously was mixed)
      * nt.lstat() will let the OS traverse reparse points that are not name surrogates (previously would not traverse any reparse point)
      * nt.[l]stat() will only set S_IFLNK for symlinks (previous behaviour)
      * nt.readlink() will read destinations for symlinks and junction points only
      
      bpo-1311: os.path.exists('nul') now returns True on Windows
      * nt.stat('nul').st_mode is now S_IFCHR (previously was an error)
      df2d4a6f
    • Stefan Krah's avatar
    • Steve Dower's avatar
    • Anthony Sottile's avatar
    • Roger Iyengar's avatar
      Update asyncio.ensure_future() documentation (GH-15347) · 092911d5
      Roger Iyengar authored
      Added back mention that ensure_future actually scheduled obj. This documentation just mentions what ensure_future returns, so I did not realize that ensure_future also schedules obj.
      092911d5
    • Jordon Xu's avatar
      bpo-37751: Fix codecs.lookup() normalization (GH-15092) · 20f59fe1
      Jordon Xu authored
      Fix codecs.lookup() to normalize the encoding name the same way
      than encodings.normalize_encoding(), except that codecs.lookup()
      also converts the name to lower case.
      20f59fe1
    • Ashwin Ramaswami's avatar
      bpo-37860: Add netlify deploy preview for docs (GH-15288) · 87bc3b7a
      Ashwin Ramaswami authored
      * add netlify deploy preview
      
      * fix publish path
      
      * install python3 venv
      
      * add sudo
      
      * try without venv
      
      * install right dependencies
      
      * use python3, not python
      
      * use pip3
      
      * python3.7
      
      * use requirements.txt
      
      * move requirements.txt to Doc
      
      * use python 3.7 in runtime.txt
      
      * move runtime.txt
      
      * Update requirements.txt
      87bc3b7a
    • Victor Stinner's avatar
      bpo-37851: faulthandler allocates its stack on demand (GH-15358) · d8c5adf6
      Victor Stinner authored
      The faulthandler module no longer allocates its alternative stack at
      Python startup. Now the stack is only allocated at the first
      faulthandler usage.
      
      faulthandler no longer ignores memory allocation failure when
      allocating the stack. sigaltstack() failure now raises an OSError
      exception, rather than being ignored.
      
      The alternative stack is no longer used if sigaction() is
      not available. In practice, sigaltstack() should only be available
      when sigaction() is avaialble, so this change should have no effect
      in practice.
      
      faulthandler.dump_traceback_later() internal locks are now only
      allocated at the first dump_traceback_later() call, rather than
      always being allocated at Python startup.
      d8c5adf6
    • Michael Anckaert's avatar
      bpo-37823: Fix open() link in telnetlib doc (GH-15281) · e0b6117e
      Michael Anckaert authored
      Fixed wrong link to Telnet.open() method in telnetlib documentation.
      e0b6117e
    • Victor Stinner's avatar
      bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) · de2d9eed
      Victor Stinner authored
      * Write a message when killing a worker process
      * Put a timeout on the second popen.communicate() call
        (after killing the process)
      * Put a timeout on popen.wait() call
      * Catch popen.kill() and popen.wait() exceptions
      de2d9eed
    • Greg Price's avatar
      Unmark files as executable that can't actually be executed. (GH-15353) · 9ece4a50
      Greg Price authored
      
      
      There are plenty of legitimate scripts in the tree that begin with a
      `#!`, but also a few that seem to be marked executable by mistake.
      
      Found them with this command -- it gets executable files known to Git,
      filters to the ones that don't start with a `#!`, and then unmarks
      them as executable:
      
          $ git ls-files --stage \
            | perl -lane 'print $F[3] if (!/^100644/)' \
            | while read f; do
                head -c2 "$f" | grep -qxF '#!' \
                || chmod a-x "$f"; \
              done
      
      Looking at the list by hand confirms that we didn't sweep up any
      files that should have the executable bit after all.  In particular
      
       * The `.psd` files are images from Photoshop.
      
       * The `.bat` files sure look like things that can be run.
         But we have lots of other `.bat` files, and they don't have
         this bit set, so it must not be needed for them.
      
      
      
      Automerge-Triggered-By: @benjaminp
      9ece4a50
    • Greg Price's avatar
      bpo-35518: Skip test that relies on a deceased network service. (GH-15349) · 5b95a150
      Greg Price authored
      If this service had thoroughly vanished, we could just ignore the
      test until someone gets around to either recreating such a service
      or redesigning the test to somehow work locally.  The
      `support.transient_internet` mechanism catches the failure to
      resolve the domain name, and skips the test.
      
      But in fact the domain snakebite.net does still exist, as do its
      nameservers -- and they can be quite slow to reply.  As a result
      this test can easily take 20-30s before it gets auto-skipped.
      
      So, skip the test explicitly up front.
      5b95a150
    • Benjamin Peterson's avatar
      d33e46d1
  4. 20 Aug, 2019 3 commits