import os

from configstore.exceptions import ConfigNotFoundException
SECRETS_PATH = '/run/secrets'


class DockerSecretBackend(object):

    def __init__(self, secrets_path=SECRETS_PATH):
        self.secrets_path = secrets_path

    def get_config(self, key):

        with open(os.path.join(self.secrets_path, key)) as fd:
            return fd.readline().strip()

import os

SECRETS_PATH = '/run/secrets'


class DockerSecretBackend(object):

    def __init__(self, secrets_path=SECRETS_PATH):
        self.secrets_path = secrets_path

    def get_config(self, key):

        with open(os.path.join(self.secrets_path, key)) as fd:
            return fd.readline().strip()

Remove unused import