Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • release/1.1
  • encrypt_comments
  • mnemonic_dewif
  • authors_rules
  • 0.14
  • rtd
  • 1.2.1 protected
  • 1.2.0 protected
  • 1.1.1 protected
  • 1.1.0 protected
  • 1.0.0 protected
  • 1.0.0rc1 protected
  • 1.0.0rc0 protected
  • 1.0.0-rc protected
  • 0.62.0 protected
  • 0.61.0 protected
  • 0.60.1 protected
  • 0.58.1 protected
  • 0.60.0 protected
  • 0.58.0 protected
  • 0.57.0 protected
  • 0.56.0 protected
  • 0.55.1 protected
  • 0.55.0 protected
  • 0.54.3 protected
  • 0.54.2 protected
27 results

duniterpy

  • Clone with SSH
  • Clone with HTTPS
  • Moul's avatar
    Moul authored
    Since Python 3.13, the IOBase finalizer now logs
    any errors raised by the close() method
    https://docs.python.org/3/whatsnew/3.13.html#io
    
    According to
    https://docs.python.org/3.13/library/io.html#io.IOBase.close
    if the file (descriptor) is accessed after being close,
    `ValueError` is raised.
    
    The `fd` is copied with `copy.copy()`.
    Both gets automatically closed once the function ends,
    the second can’t close a second time the same fd,
    that’s why we get this error.
    
    Not sure if there is a use case with the fd copy
    Fix: remove fd copy
    8d7c2d60
    History
    Name Last commit Last update