This instance will be upgraded to Heptapod 0.21.0rc2 on 2021-04-16 at 14:00 UTC+2 (a few minutes of down time)

  1. 20 Jul, 2020 1 commit
  2. 18 Jul, 2020 6 commits
  3. 19 Jul, 2020 2 commits
  4. 20 Jul, 2020 1 commit
  5. 14 Jul, 2020 1 commit
  6. 17 Jul, 2020 1 commit
  7. 18 Jul, 2020 1 commit
  8. 14 Jul, 2020 2 commits
  9. 09 Jul, 2020 9 commits
  10. 18 Jul, 2020 1 commit
    • Manuel Jacob's avatar
      windows: don’t set `softspace` attribute in `winstdout` · ed58ecd59030
      Manuel Jacob authored
      Python 2 file objects have the `softspace` attribute
      (https://docs.python.org/2/library/stdtypes.html#file.softspace), which is used
      by the print statement to track its internal state. The documentation demands
      from file-like objects only that the attribute is writable and initialized to
      0. Method `file.write()` sets it to 0, but this is not documented.
      Historically, sys.stdout was replaced by an instance of the `winstdout` class,
      so it needed to behave exactly the same (the softspace fix was introduced in
      705278e70457). Nowadays we don’t replace sys.stdout and don’t use the print
      statement on `winstdout` instances, so we can safely drop it.
      ed58ecd59030
  11. 17 Jul, 2020 5 commits
  12. 16 Jul, 2020 1 commit
  13. 14 Jul, 2020 1 commit
  14. 13 Jul, 2020 1 commit
  15. 08 Jul, 2020 2 commits
    • Manuel Jacob's avatar
      archival: abort if compression method is unavailable · 2c0043977b6d
      Manuel Jacob authored
      `tarfile.CompressionError` is documented to be the "exception for unavailable
      compression methods".
      
      Also, make tests conditional on whether the lzma module is available or not.
      
      --HG--
      branch : stable
      2c0043977b6d
    • Manuel Jacob's avatar
      demandimport: ignore `lzma` module for demandimport · 40120de810ba
      Manuel Jacob authored
      This makes importing the module fail if the `_lzma` module is not present.
      
      This makes e.g. tarfile correctly recognize if LZMA support is not present. It
      changes the exception
      
          File "/usr/lib/python3.6/tarfile.py", line 1694, in xzopen
            fileobj = lzma.LZMAFile(fileobj or name, mode, preset=preset)
        AttributeError: module 'lzma' has no attribute 'LZMAFile'
      
      to the more correct exception
      
          File "/usr/lib/python3.6/tarfile.py", line 1692, in xzopen
            raise CompressionError("lzma module is not available")
        tarfile.CompressionError: lzma module is not available
      
      Also, it prevents that the error "abort: No module named '_lzma'!" is shown when
      a development warning is to be shown. The reason why that happened is that for
      showing the warning, we get information about the stack frames from the inspect
      module, which accesses the `__file__` attribute of all modules in `sys.modules`
      to build some cache, causing all modules (including `lzma`) to be...
      40120de810ba
  16. 03 Jul, 2020 1 commit
    • Manuel Jacob's avatar
      py3: fix crash when server address is 0.0.0.0 (issue6362) · b1a1702262c9
      Manuel Jacob authored
      `socket.getfqdn()` assumes that the name is passed as `str` on Python 3 and
      always returns `str` in this case. Mercurial passed `bytes` (but still expected
      a `str` result), which worked by chance in many cases, except for e.g.
      b'0.0.0.0', which was returned unchanged, breaking later code.
      
      Instead of calling `socket.getfqdn()`, we can also use `self.server_name` from
      the base `HTTPServer` class, which already stores the FQDN of the locally-bound
      socket name (see `BaseHTTPServer.py` in the Python 2 stdlib and
      `http/server.py` in the Python 3 stdlib).
      
      --HG--
      branch : stable
      b1a1702262c9
  17. 01 Jul, 2020 1 commit
  18. 29 Jun, 2020 1 commit
  19. 01 Jul, 2020 2 commits