do not use set

This commit is contained in:
Scott Moser 2015-03-27 16:27:47 -04:00
parent 9e5b7b08b8
commit 5ad95ec6e3

View File

@ -82,7 +82,7 @@ def get_fs_package_ops(fspath):
for snapfile in sorted(glob.glob(os.path.sep.join([fspath, '*.snap']))):
(name, shortname, fname_noext) = parse_filename(snapfile)
cfg = None
for cand in set((fname_noext, name, shortname,)):
for cand in (fname_noext, name, shortname):
fpcand = os.path.sep.join([fspath, cand]) + ".config"
if os.path.isfile(fpcand):
cfg = fpcand