1. 02 Jan, 2019 1 commit
    • Javier Jardón's avatar
      Use pycodestyle instead of pep8 · bd60e8a9
      Javier Jardón authored
      pep8 package was renamed to pycodestyle to reduce confusion.
      Disabled warnings:
      W504 - Line break after binary operator (seems people like this)
      W605 - Invalid escape sequence (some of our regexes use these)
  2. 26 Dec, 2018 1 commit
  3. 08 Jul, 2018 1 commit
  4. 19 Jun, 2018 1 commit
  5. 14 Mar, 2018 3 commits
  6. 22 Dec, 2017 1 commit
    • Angelos Evripiotis's avatar
      _signals.terminator_handler: wrap handlers in trys · 78fc8440
      Angelos Evripiotis authored
      It's possible for the custom termination handlers to raise exceptions.
      Indeed this was actually the case for utils._call(). They're especially
      difficult to reach with tests, so make extra effort to insulate them.
      Print any exceptions encountered as a regular traceback before exiting.
  7. 13 Dec, 2017 2 commits
  8. 25 Jun, 2017 1 commit
  9. 30 May, 2017 1 commit
    • Tristan Van Berkom's avatar
      _signals.py: Added blocked() context manager · 304a35e8
      Tristan Van Berkom authored
      A simpler context manager for ignoring signals in a code block,
      also takes a "discard" option to decide whether the pending signals
      delivered during the code block should be discarded or left in place
      to be treated upon exiting the context manager.
  10. 08 Apr, 2017 1 commit
    • Tristan Van Berkom's avatar
      _signals.py: More reliable suspend/resume context manager · 347d01c6
      Tristan Van Berkom authored
      It seems that resuming tasks was not happening consistently, sometimes
      resuming would fail to resume.
      Changed the code to stop handling SIGCONT completely as to not add
      any interference in the main child task's SIGCONT handling, instead
      perform SIGCONT activities in the SIGTSTP handler, directly after
      issuing SIGSTOP to self, where we implicitly know that if that code
      is executed, it's because we have now resumed.
      It's impossible to tell how correct this change is, however after
      much testing this appears to be entirely reliable, whilst the previous
      approach continues to be demonstrably unreliable.
  11. 07 Apr, 2017 1 commit