/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: 2020-02-01 22:02:09 UTC
  • Revision ID: teddy@recompile.se-20200201220209-rwk3t2rq51pjwo29
Minor code cleanup by renaming a local variable

* dracut-module/password-agent.c (should_only_run_tests): Rename local
  variable "run_tests" to avoid confusion with global function
  run_tests().

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