diff options
author | Kali Kaneko <kali@leap.se> | 2014-08-19 11:27:29 -0500 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-08-19 11:45:22 -0500 |
commit | 7a21894a084d49573a0f2334d1b8baeebd5ccee4 (patch) | |
tree | cecf097411333f84cb95b314641dcbe7d84be792 | |
parent | b1125ba0b6526cdf6b18844ba916909d0ca61cc0 (diff) |
remove dict comprenhension
-rw-r--r-- | changes/bug-remove-dict-comprenhension | 1 | ||||
-rw-r--r-- | src/leap/bitmask/util/__init__.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changes/bug-remove-dict-comprenhension b/changes/bug-remove-dict-comprenhension new file mode 100644 index 00000000..4e9468d8 --- /dev/null +++ b/changes/bug-remove-dict-comprenhension @@ -0,0 +1 @@ +- Remove dict comprenension in util, for 2.6 compat. diff --git a/src/leap/bitmask/util/__init__.py b/src/leap/bitmask/util/__init__.py index caa94ec7..e8eddd64 100644 --- a/src/leap/bitmask/util/__init__.py +++ b/src/leap/bitmask/util/__init__.py @@ -151,6 +151,6 @@ def flags_to_dict(): :rtype: dict. """ items = [i for i in dir(flags) if i[0] != '_'] - values = {i: getattr(flags, i) for i in items} + values = dict((i, getattr(flags, i)) for i in items) return values |