config = {}
_default = object()


def configure(**kwargs):
    """Save all keyword arguments as (key=value) configuration."""
    config.update(kwargs)


def get_config(key, default=_default):
    """Lookup the value of a configuration key using an optional default."""
    value = config.get(key, default)
    if value == _default:
        raise KeyError('%s is not configured' % key)
    return value

config = {}
_missing = object()


def configure(**kwargs):
    """Save all keyword arguments as (key=value) configuration."""
    config.update(kwargs)


def get_config(key, default=_missing):
    """Lookup the value of a configuration key using an optional default."""
    value = config.get(key, default)
    if value == _missing:
        raise KeyError('%s is not configured' % key)
    return value

Improve varname for missing config
Improve varname for missing config

  config = {}
- _default = object()
+ _missing = object()
  
  
  def configure(**kwargs):
      """Save all keyword arguments as (key=value) configuration."""
      config.update(kwargs)
  
  
- def get_config(key, default=_default):
+ def get_config(key, default=_missing):
      """Lookup the value of a configuration key using an optional default."""
      value = config.get(key, default)
-     if value == _default:
+     if value == _missing:
          raise KeyError('%s is not configured' % key)
      return value
  
Improve varname for missing config
## Code Before:
config = {}
_default = object()


def configure(**kwargs):
    """Save all keyword arguments as (key=value) configuration."""
    config.update(kwargs)


def get_config(key, default=_default):
    """Lookup the value of a configuration key using an optional default."""
    value = config.get(key, default)
    if value == _default:
        raise KeyError('%s is not configured' % key)
    return value

## Instruction:
Improve varname for missing config
## Code After:
config = {}
_missing = object()


def configure(**kwargs):
    """Save all keyword arguments as (key=value) configuration."""
    config.update(kwargs)


def get_config(key, default=_missing):
    """Lookup the value of a configuration key using an optional default."""
    value = config.get(key, default)
    if value == _missing:
        raise KeyError('%s is not configured' % key)
    return value
