fault/python-fmclient/fmclient/fmclient/common
Charles Short 24efa2b9aa python3: Fix compatibility issues
- use absolute path imports to compat python3
- Replace dict.keys() with list(dict.keys()) to get a list on Python
  3. On Python 3, dict.keys() now returns a view.
- Fix iteritems to use items for python3.

Testing:
1. Built packaging with new python3 packaging.
2. Built resulting ISO with new python-fmclient package.
3. Ran "fm" under python3. Verifified that no tracebacks
   happened because it could not find common_wrappers.py.
4. Ran fm alarm-list to verify that output was displayed.
5. Ran fm event-list to display the events.
6. Ran fm alarm-show to show an active alarm.

Story: 2006796
Task: 42257

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I5081d0685c7ad200076a76b7709cbe4f39c7b456
(cherry picked from commit 5d2dfab5f9)
2021-08-16 01:25:57 +00:00
..
__init__.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
base.py python3: Fix compatibility issues 2021-08-16 01:25:57 +00:00
cli_no_wrap.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
exceptions.py catch the correct exception for alarm not found case 2019-03-18 20:10:37 +08:00
http.py Use newer flake8 on python3.8 zuul systems 2020-11-16 13:35:31 -06:00
i18n.py Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
options.py python3: Fix compatibility issues 2021-08-16 01:25:57 +00:00
utils.py python3: Fix compatibility issues 2021-08-16 01:25:57 +00:00
wrapping_formatters.py python3: Fix compatibility issues 2021-08-16 01:25:57 +00:00