Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_sources(include_per_machine=True, include_per_user=True):
if _is_64bit_os():
if include_per_user:
yield open_source(REGISTRY_SOURCE_CU), None
if include_per_machine:
yield open_source(REGISTRY_SOURCE_LM), '64bit'
yield open_source(REGISTRY_SOURCE_LM_WOW6432), '32bit'
else:
if include_per_user:
yield open_source(REGISTRY_SOURCE_CU), '32bit'
if include_per_machine:
yield open_source(REGISTRY_SOURCE_LM), '32bit'
def _get_sources(include_per_machine=True, include_per_user=True):
if _is_64bit_os():
if include_per_user:
yield open_source(REGISTRY_SOURCE_CU), None
if include_per_machine:
yield open_source(REGISTRY_SOURCE_LM), '64bit'
yield open_source(REGISTRY_SOURCE_LM_WOW6432), '32bit'
else:
if include_per_user:
yield open_source(REGISTRY_SOURCE_CU), '32bit'
if include_per_machine:
yield open_source(REGISTRY_SOURCE_LM), '32bit'