tests/printenv.py
changeset 4659 7a7d4937272b
parent 4643 a39cec1d5cb8
child 7080 a6477aa893b8
equal deleted inserted replaced
4658:17f5d2069551 4659:7a7d4937272b
    25     if len(sys.argv) > 3:
    25     if len(sys.argv) > 3:
    26         out = open(sys.argv[3], "ab")
    26         out = open(sys.argv[3], "ab")
    27 
    27 
    28 # variables with empty values may not exist on all platforms, filter
    28 # variables with empty values may not exist on all platforms, filter
    29 # them now for portability sake.
    29 # them now for portability sake.
    30 env = [k for k,v in os.environ.iteritems() 
    30 env = [k for k, v in os.environ.iteritems()
    31        if k.startswith("HG_") and v]
    31        if k.startswith("HG_") and v]
    32 env.sort()
    32 env.sort()
    33 
    33 
    34 # edit the variable part of the variable
    34 # edit the variable part of the variable
    35 url = os.environ.get("HG_URL", "")
    35 url = os.environ.get("HG_URL", "")