import sys

SUPPORTED_VERSIONS = [(2, 7), (3, 6), (3, 7)]

python_major_version = sys.version_info[0]
python_minor_version = sys.version_info[1]

if (python_major_version, python_minor_version) not in SUPPORTED_VERSIONS:
    formatted_supported_versions = ['{}.{}'.format(mav, miv) for mav, miv in SUPPORTED_VERSIONS]
    err_msg = 'This version of Python ({}.{}) is not supported!\n'.format(python_major_version, python_minor_version) +\
              'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions)
    raise RuntimeError(err_msg)

__version__ = '0.47.1'

import sys

SUPPORTED_VERSIONS = [(2, 7), (3, 6), (3, 7)]

if sys.version_info[:2] not in SUPPORTED_VERSIONS:
    formatted_supported_versions = ['{}.{}'.format(*version) for version in SUPPORTED_VERSIONS]
    err_msg = ('This version of Python ({}.{}) is not supported!\n'.format(*sys.version_info) +
               'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions))
    raise RuntimeError(err_msg)

__version__ = '0.47.1'

Simplify Python version detection and remove the backslash
Simplify Python version detection and remove the backslash
  import sys
  
  SUPPORTED_VERSIONS = [(2, 7), (3, 6), (3, 7)]
  
+ if sys.version_info[:2] not in SUPPORTED_VERSIONS:
- python_major_version = sys.version_info[0]
- python_minor_version = sys.version_info[1]
- 
- if (python_major_version, python_minor_version) not in SUPPORTED_VERSIONS:
-     formatted_supported_versions = ['{}.{}'.format(mav, miv) for mav, miv in SUPPORTED_VERSIONS]
+     formatted_supported_versions = ['{}.{}'.format(*version) for version in SUPPORTED_VERSIONS]
-     err_msg = 'This version of Python ({}.{}) is not supported!\n'.format(python_major_version, python_minor_version) +\
+     err_msg = ('This version of Python ({}.{}) is not supported!\n'.format(*sys.version_info) +
-               'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions)
+                'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions))
      raise RuntimeError(err_msg)
  
  __version__ = '0.47.1'
  
Simplify Python version detection and remove the backslash
## Code Before:
import sys

SUPPORTED_VERSIONS = [(2, 7), (3, 6), (3, 7)]

python_major_version = sys.version_info[0]
python_minor_version = sys.version_info[1]

if (python_major_version, python_minor_version) not in SUPPORTED_VERSIONS:
    formatted_supported_versions = ['{}.{}'.format(mav, miv) for mav, miv in SUPPORTED_VERSIONS]
    err_msg = 'This version of Python ({}.{}) is not supported!\n'.format(python_major_version, python_minor_version) +\
              'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions)
    raise RuntimeError(err_msg)

__version__ = '0.47.1'

## Instruction:
Simplify Python version detection and remove the backslash
## Code After:
import sys

SUPPORTED_VERSIONS = [(2, 7), (3, 6), (3, 7)]

if sys.version_info[:2] not in SUPPORTED_VERSIONS:
    formatted_supported_versions = ['{}.{}'.format(*version) for version in SUPPORTED_VERSIONS]
    err_msg = ('This version of Python ({}.{}) is not supported!\n'.format(*sys.version_info) +
               'Zappa (and AWS Lambda) support the following versions of Python: {}'.format(formatted_supported_versions))
    raise RuntimeError(err_msg)

__version__ = '0.47.1'
