/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-monitor

  • Committer: Teddy Hogeborn
  • Date: 2019-09-01 07:07:15 UTC
  • Revision ID: teddy@recompile.se-20190901070715-wxmzxxlpx70vewto
Address Python 3 bytes/str warnings

* mandos-monitor (UserInterface.run): Ignore BytesWarning from urwid;
                                      work around Debian bug #939084.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
import sys
35
35
import os
36
 
 
 
36
import warnings
37
37
import datetime
38
38
 
39
39
import urwid.curses_display
636
636
        self.main_loop.run()
637
637
        # Main loop has finished, we should close everything now
638
638
        GLib.source_remove(self._input_callback_tag)
639
 
        self.screen.stop()
 
639
        with warnings.catch_warnings():
 
640
            warnings.simplefilter("ignore", BytesWarning)
 
641
            self.screen.stop()
640
642
 
641
643
    def stop(self):
642
644
        self.main_loop.quit()