Fix "type_" arg in wine.set_regedit not corresponding to installer doc

The doc says "type", not "type_".

It may not be cool at all to override the "type" built-in function but
I think it's worth it here, for the sake of an intuitive and clean
installer syntax.
This commit is contained in:
Xodetaetl 2015-12-26 23:41:12 +01:00
parent 8be9f19d12
commit 72a2327af3

View file

@ -13,8 +13,8 @@ from lutris.runners.runner import Runner
WINE_DIR = os.path.join(settings.RUNNER_DIR, "wine")
def set_regedit(path, key, value='', type_='REG_SZ',
wine_path=None, prefix=None, arch='win32'):
def set_regedit(path, key, value='', type='REG_SZ', wine_path=None,
prefix=None, arch='win32'):
"""Add keys to the windows registry.
Path is something like HKEY_CURRENT_USER\Software\Wine\Direct3D
@ -36,7 +36,7 @@ def set_regedit(path, key, value='', type_='REG_SZ',
REGEDIT4
[%s]
"%s"=%s
""" % (path, key, formatted_value[type_])))
""" % (path, key, formatted_value[type])))
reg_file.close()
set_regedit_file(reg_path, wine_path=wine_path, prefix=prefix, arch=arch)
os.remove(reg_path)