blob: d0012e74350f468fda0349dbb96b769af4755c4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Linux compatibility shim for Python plugins that import the Windows `winreg`
# module. Callers in our plugin set expect registry access to fail and fall back
# to non-registry paths.
HKEY_LOCAL_MACHINE = object()
HKEY_CURRENT_USER = object()
def OpenKey(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
OpenKeyEx = OpenKey
def QueryValueEx(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
def QueryInfoKey(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
def EnumKey(*_args, **_kwargs):
raise FileNotFoundError("winreg is not available on this platform")
|