import os
import yaml


# Globals
config_filename = os.getenv(
        'SINGLET_CONFIG_FILENAME',
        os.getenv('HOME') + '/.singlet/config.yml')
with open(config_filename) as stream:
    config = yaml.load(stream)

# Warnings that should be seen only once
config['_once_warnings'] = []
config.reset_once_warings = lambda: config['_once_warnings'] = []

import os
import yaml


# Globals
config_filename = os.getenv(
        'SINGLET_CONFIG_FILENAME',
        os.getenv('HOME') + '/.singlet/config.yml')
with open(config_filename) as stream:
    config = yaml.load(stream)

# Warnings that should be seen only once
config['_once_warnings'] = []

Remove function to reset _once_warnings (messy)
Remove function to reset _once_warnings (messy)

  import os
  import yaml
  
  
  # Globals
  config_filename = os.getenv(
          'SINGLET_CONFIG_FILENAME',
          os.getenv('HOME') + '/.singlet/config.yml')
  with open(config_filename) as stream:
      config = yaml.load(stream)
  
  # Warnings that should be seen only once
  config['_once_warnings'] = []
- config.reset_once_warings = lambda: config['_once_warnings'] = []
  
Remove function to reset _once_warnings (messy)
## Code Before:
import os
import yaml


# Globals
config_filename = os.getenv(
        'SINGLET_CONFIG_FILENAME',
        os.getenv('HOME') + '/.singlet/config.yml')
with open(config_filename) as stream:
    config = yaml.load(stream)

# Warnings that should be seen only once
config['_once_warnings'] = []
config.reset_once_warings = lambda: config['_once_warnings'] = []

## Instruction:
Remove function to reset _once_warnings (messy)
## Code After:
import os
import yaml


# Globals
config_filename = os.getenv(
        'SINGLET_CONFIG_FILENAME',
        os.getenv('HOME') + '/.singlet/config.yml')
with open(config_filename) as stream:
    config = yaml.load(stream)

# Warnings that should be seen only once
config['_once_warnings'] = []
