/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

  • Committer: Teddy Hogeborn
  • Date: 2019-11-21 19:50:51 UTC
  • Revision ID: teddy@recompile.se-20191121195051-jq57g07ybacsjw3r
Makefile: Declare phoniness of targets at each target

Instead of having one global list of .PHONY targets, with its
associated risk of that list becoming out-of-date, declare a target to
be phony at each target declaration.

* Makefile (.PHONY): Remove global list.  Spread out .PHONY
  declarations to be located before the declaration of each target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
if sys.version_info.major == 2:
93
93
    __metaclass__ = type
94
 
    str = unicode
95
94
 
96
95
# Show warnings by default
97
96
if not sys.warnoptions:
123
122
            # No value found
124
123
            SO_BINDTODEVICE = None
125
124
 
 
125
if sys.version_info.major == 2:
 
126
    str = unicode
 
127
 
126
128
if sys.version_info < (3, 2):
127
129
    configparser.Configparser = configparser.SafeConfigParser
128
130
 
1411
1413
                raise ValueError("Byte arrays not supported for non-"
1412
1414
                                 "'ay' signature {!r}"
1413
1415
                                 .format(prop._dbus_signature))
1414
 
            value = dbus.ByteArray(bytes(value))
 
1416
            value = dbus.ByteArray(b''.join(chr(byte)
 
1417
                                            for byte in value))
1415
1418
        prop(value)
1416
1419
 
1417
1420
    @dbus.service.method(dbus.PROPERTIES_IFACE,