Passed
Push — master ( cf341e...dcdf4c )
by
unknown
03:07
created

get_environ()   A

Complexity

Conditions 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
import os
2
3
4
def get_environ(env_var):
5
    val = os.environ.get(env_var, None)
6
7
    if not val:
8
        val = os.environ.get(env_var.lower(), os.environ.get(env_var.upper(), None))
9
10
    return val
11