File fix-python34.patch of Package scap-security-guide
diff --git a/ssg/entities/common.py b/ssg/entities/common.py
index 4f83a845f1..2a93b58082 100644
--- a/ssg/entities/common.py
+++ b/ssg/entities/common.py
@@ -218,7 +218,7 @@ class XCCDFEntity(object):
if cls.ALTERNATIVE_KEYS[key] in initial_input_keys:
data[key] = cls.KEYS[key]()
else:
- msg = f"Key '{key}' is mandatory for definition of '{cls.__name__}'."
+ msg = ("Key '{0}' is mandatory for definition of '{1}'.").format(key,cls.__name__)
raise ValueError(msg)
for key, default in cls.KEYS.items():
diff --git a/ssg/entities/profile_base.py b/ssg/entities/profile_base.py
index c1fd9ddb39..e1b0c29520 100644
--- a/ssg/entities/profile_base.py
+++ b/ssg/entities/profile_base.py
@@ -89,8 +89,8 @@ class Profile(XCCDFEntity, SelectionHandler):
allowed_profile_statuses = ["draft", "interim", "accepted", "deprecated"]
if input_contents["status"] and input_contents["status"] not in allowed_profile_statuses:
msg = ("Profile status must be one of the following values: "
- f"{allowed_profile_statuses}"
- )
+ "{0}"
+ ).format(allowed_profile_statuses)
raise ValueError(msg)
return input_contents