"""Inspects dictionary for desired keys and stores for later usage."""

from hostel_huptainer.errors import InputError


class Environment(object):
    """Searches ``environment`` for expected variables and stores them."""

    def __init__(self, environment):
        self.hostname = environment.get('CERTBOT_HOSTNAME')

        if not self.hostname:
            raise InputError('CERTBOT_HOSTNAME environment variable is missing.')

"""Inspects dictionary for desired keys and stores for later usage."""

from hostel_huptainer.errors import InputError


class Environment(object):
    """Searches ``environment`` for expected variables and stores them."""

    def __init__(self, environment):
        self.hostname = environment.get('CERTBOT_HOSTNAME')

        if not self.hostname:
            raise InputError(
                'CERTBOT_HOSTNAME environment variable is missing.')

Decrease line length for pycodestyle compliance
Decrease line length for pycodestyle compliance

A line exceeded 75 characters in length.

  """Inspects dictionary for desired keys and stores for later usage."""
  
  from hostel_huptainer.errors import InputError
  
  
  class Environment(object):
      """Searches ``environment`` for expected variables and stores them."""
  
      def __init__(self, environment):
          self.hostname = environment.get('CERTBOT_HOSTNAME')
  
          if not self.hostname:
+             raise InputError(
-             raise InputError('CERTBOT_HOSTNAME environment variable is missing.')
+                 'CERTBOT_HOSTNAME environment variable is missing.')
  
Decrease line length for pycodestyle compliance
## Code Before:
"""Inspects dictionary for desired keys and stores for later usage."""

from hostel_huptainer.errors import InputError


class Environment(object):
    """Searches ``environment`` for expected variables and stores them."""

    def __init__(self, environment):
        self.hostname = environment.get('CERTBOT_HOSTNAME')

        if not self.hostname:
            raise InputError('CERTBOT_HOSTNAME environment variable is missing.')

## Instruction:
Decrease line length for pycodestyle compliance
## Code After:
"""Inspects dictionary for desired keys and stores for later usage."""

from hostel_huptainer.errors import InputError


class Environment(object):
    """Searches ``environment`` for expected variables and stores them."""

    def __init__(self, environment):
        self.hostname = environment.get('CERTBOT_HOSTNAME')

        if not self.hostname:
            raise InputError(
                'CERTBOT_HOSTNAME environment variable is missing.')
