equal
deleted
inserted
replaced
440 scope = (scope,) |
440 scope = (scope,) |
441 for s in scope: |
441 for s in scope: |
442 try: |
442 try: |
443 val = winreg.QueryValueEx(winreg.OpenKey(s, key), valname)[0] |
443 val = winreg.QueryValueEx(winreg.OpenKey(s, key), valname)[0] |
444 # never let a Unicode string escape into the wild |
444 # never let a Unicode string escape into the wild |
445 return encoding.tolocal(val.encode('UTF-8')) |
445 return encoding.unitolocal(val) |
446 except EnvironmentError: |
446 except EnvironmentError: |
447 pass |
447 pass |
448 |
448 |
449 expandglobs = True |
449 expandglobs = True |
450 |
450 |