sshspawner/sshspawner.py
def env_str_to_dict(output):
            "Convert the output of `env` into a dict"

            d = {}
            lines = output.split("\n")
            for line in lines:
                divided = line.split("=")
                if len(divided) == 2:
                    var, val = divided
                    d[var] = val
                elif len(divided) == 1:
                    var = divided[0]
                    d[var] = ""
            return d
Convert the output of `env` into a dict
Convert the output of `env` into a dict
Convert the output of ` env ` into a dict
def env_str_to_dict(output):
            d = {}
            lines = output.split("\n")
            for line in lines:
                divided = line.split("=")
                if len(divided) == 2:
                    var, val = divided
                    d[var] = val
                elif len(divided) == 1:
                    var = divided[0]
                    d[var] = ""
            return d
def env_str_to_dict ( output ) : d = { } lines = output . split ( "\n" ) for line in lines : divided = line . split ( "=" ) if len ( divided ) == 2 : var , val = divided d [ var ] = val elif len ( divided ) == 1 : var = divided [ 0 ] d [ var ] = "" return d
Convert the output of `env` into a dict
Convert the output of ` env ` into a dict
"Convert the output of `env` into a dict"
output