diff --git a/samcli/local/lambdafn/env_vars.py b/samcli/local/lambdafn/env_vars.py index 902c9e1c414..889c9794dfc 100644 --- a/samcli/local/lambdafn/env_vars.py +++ b/samcli/local/lambdafn/env_vars.py @@ -2,17 +2,11 @@ Supplies the environment variables necessary to set up Local Lambda runtime """ -import sys -from enum import IntEnum from typing import Optional from samcli.lib.providers.provider import CapacityProviderConfig -class Python(IntEnum): - TWO = 2 - - class EnvironmentVariables: """ Use this class to get the environment variables necessary to run the Lambda function. It returns the AWS specific @@ -238,13 +232,8 @@ def _stringify_value(self, value): result = "false" # value is a scalar type like int, str which can be stringified - # do not stringify unicode in Py2, Py3 str supports unicode - elif sys.version_info.major > Python.TWO: - result = str(value) - elif not isinstance(value, unicode): # noqa: F821 pylint: disable=undefined-variable - result = str(value) else: - result = value + result = str(value) return result