1. 30 8月, 2020 2 次提交
  2. 19 4月, 2020 1 次提交
  3. 18 4月, 2020 3 次提交
  4. 05 1月, 2020 1 次提交
    • N
      Reduce the number of garbage collected file descriptors · 89590bf3
      Niels Thykier 提交于
      The code base contains a few unfornuate patterns such as:
      
          data = open(...).read()
      
      OR
      
          fh = open(...)
          data = fh.read()
      
      This causes a file descriptor leak as the opened file is never
      explicitly closed again.  While slightly mitigated by CPython using
      ref-counting and immediate closure, we should still update the code
      to close the files.
      
      This commit focuses on a large number of simple clean ups.  Most of
      which relies on the "with open(...) as X" pattern where feasible.
      
      As "with" causes identation noise, this commit deliberately refains
      from "fixing" other suboptimal behaviour.  Notably there are several
      instances of "except:" visible in the diff that should ideally be
      reduced.
      Signed-off-by: NNiels Thykier <niels@thykier.net>
      89590bf3
  5. 30 11月, 2019 1 次提交
  6. 20 10月, 2019 1 次提交
  7. 16 9月, 2019 1 次提交
  8. 04 9月, 2019 1 次提交
  9. 16 7月, 2019 1 次提交
  10. 06 7月, 2019 1 次提交
  11. 28 6月, 2019 1 次提交
  12. 11 6月, 2019 1 次提交
  13. 10 6月, 2019 2 次提交
  14. 04 4月, 2019 1 次提交
  15. 10 11月, 2018 2 次提交
  16. 06 11月, 2018 1 次提交
  17. 28 6月, 2018 2 次提交
  18. 27 6月, 2018 1 次提交
  19. 25 5月, 2018 1 次提交
  20. 24 5月, 2018 1 次提交
  21. 22 5月, 2018 2 次提交
  22. 21 5月, 2018 2 次提交
  23. 20 5月, 2018 2 次提交
  24. 19 5月, 2018 2 次提交
  25. 08 4月, 2018 1 次提交
  26. 08 3月, 2018 1 次提交
  27. 02 11月, 2017 1 次提交
  28. 15 7月, 2017 1 次提交
  29. 06 7月, 2017 2 次提交