From 550770626f27706a0967f3fefbff2bd39111446b Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Wed, 5 Jul 2017 17:51:20 +0100 Subject: [PATCH] create: Don't use 'os' as variable name --- virtManager/create.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virtManager/create.py b/virtManager/create.py index df62cdfb5..8f8fa4702 100644 --- a/virtManager/create.py +++ b/virtManager/create.py @@ -1038,10 +1038,10 @@ class vmmCreate(vmmGObjectUI): # and which do not. variants = virtinst.OSDB.list_os(typename=_type, sortpref=preferred) - all_distros = set([os.distro for os in variants]) - distros = [os for os in all_distros if os in groups] + all_distros = set([_os.distro for _os in variants]) + distros = [_os for _os in all_distros if _os in groups] distros.sort() - other_distros = [os for os in all_distros if os not in groups] + other_distros = [_os for _os in all_distros if _os not in groups] parents = dict() if len(distros) > 0: # We have groups for the OSes, so create them.