python2 to python3 conversion
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1716d022bb67b1301f771c575842175372b04bef
diff --git a/configure.ac b/configure.ac
index d7e7812..0f78714 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,8 +9,8 @@
AM_PROG_AR
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-AM_PATH_PYTHON([2.7], [AC_SUBST([PYTHON], [echo "$PYTHON"])], [AC_MSG_ERROR(
- [Could not find python-2.7 installed...python-2.7 is required])])
+AM_PATH_PYTHON([3], [AC_SUBST([PYTHON], [echo "$PYTHON"])], [AC_MSG_ERROR(
+ [Could not find python-3 installed...python-3 is required])])
PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
diff --git a/settings.py b/settings.py
index 9046e32..57053f7 100755
--- a/settings.py
+++ b/settings.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import yaml
diff --git a/settings_manager.mako.hpp b/settings_manager.mako.hpp
index c2255b8..6f8841f 100644
--- a/settings_manager.mako.hpp
+++ b/settings_manager.mako.hpp
@@ -4,7 +4,7 @@
<%
import re
from collections import defaultdict
-objects = list(settingsDict.viewkeys())
+objects = settingsDict.keys()
sdbusplus_namespaces = []
sdbusplus_includes = []
props = defaultdict(list)