diff options
author | Shawn J. Goff <shawn.goff@accelecon.com> | 2012-12-17 16:29:16 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-12-17 16:59:48 -0600 |
commit | 2a9bb58bd284d228a349b918d5f352cdffc8a1ad (patch) | |
tree | 5d514535f73b30ea5eed19355975fa65198723eb /build-aux | |
parent | 31e3155c414d8d4c7e3ec5d9f0d75d37c6ee1c79 (diff) |
qmi-codegen python3: fix dict.has_key('key') to 'key' in dict
Python 3 no longer supports the has_key() method.
sed regex:
s/\([^ ]\+\)\.has_key(\([^)]*\))/\2 in \1/g
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/qmi-codegen/Variable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/qmi-codegen/Variable.py b/build-aux/qmi-codegen/Variable.py index 8e4bfc6..c238471 100644 --- a/build-aux/qmi-codegen/Variable.py +++ b/build-aux/qmi-codegen/Variable.py @@ -45,7 +45,7 @@ class Variable: self.needs_dispose = False self.endian = "QMI_ENDIAN_LITTLE" - if dictionary.has_key('endian'): + if 'endian' in dictionary: endian = dictionary['endian'] if endian == 'network' or endian == 'big': self.endian = "QMI_ENDIAN_BIG" |