<reponame>tex0l/JukeBox
from __future__ import unicode_literals
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import logging


class Map():
    """
    Get the keyboard mapping from the config file
    """
    def __init__(self, loaded_config):
        self.map = loaded_config.map
        logging.debug("Map retrieved : %s" % self.map)

    def find(self, char):
        try:
            return self.map[char]
        except KeyError:
            return ""
from __future__ import unicode_literals
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import logging


class Map():
    """
    Get the keyboard mapping from the config file
    """
    def __init__(self, loaded_config):
        self.map = loaded_config.map
        logging.debug("Map retrieved : %s" % self.map)

    def find(self, char):
        try:
            return self.map[char]
        except KeyError:
            return ""
# !/usr/bin/env python # -*- coding: utf-8 -*- Get the keyboard mapping from the config file