Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions samcli/local/lambdafn/env_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down