/mandos/release

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

« back to all changes in this revision

Viewing changes to mandos-monitor

  • Committer: Teddy Hogeborn
  • Date: 2019-11-03 18:58:44 UTC
  • mto: This revision was merged to the branch mainline in revision 396.
  • Revision ID: teddy@recompile.se-20191103185844-r5ghn595fdzefg4w
mandos-monitor: Formatting changes only

* mandos-monitor: Re-order imports and normally use double quotes
                  instead of single quotes for strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python3 -bbI
 
1
#!/usr/bin/python3 -bb
2
2
# -*- mode: python; coding: utf-8 -*-
3
3
#
4
4
# Mandos Monitor - Control and monitor the Mandos server
47
47
import dbus
48
48
 
49
49
if sys.version_info.major == 2:
50
 
    __metaclass__ = type
51
50
    str = unicode
52
51
 
53
52
log = logging.getLogger(os.path.basename(sys.argv[0]))
89
88
                             int(fraction*1000000))  # Microseconds
90
89
 
91
90
 
92
 
class MandosClientPropertyCache:
 
91
class MandosClientPropertyCache(object):
93
92
    """This wraps a Mandos Client D-Bus proxy object, caches the
94
93
    properties and calls a hook function when any of them are
95
94
    changed.
407
406
        return ret
408
407
 
409
408
 
410
 
class UserInterface:
 
409
class UserInterface(object):
411
410
    """This is the entire user interface - the whole screen
412
411
    with boxes, lists of client widgets, etc.
413
412
    """