Switch a few needless lists into tuples

This commit is contained in:
Jeff Schroeder 2011-12-22 21:36:49 -08:00
parent 4314abd546
commit 3c2e6197d2

View File

@ -161,7 +161,7 @@ def _virtual(osdata):
grains['virtual'] = 'VirtualBox'
elif 'qemu' in model:
grains['virtual'] = 'kvm'
choices = ['Linux', 'OpenBSD', 'SunOS', 'HP-UX']
choices = ('Linux', 'OpenBSD', 'SunOS', 'HP-UX')
isdir = os.path.isdir
if osdata['kernel'] in choices:
if isdir('/proc/vz'):
@ -363,7 +363,7 @@ def pythonversion():
'''
# Provides:
# pythonversion
return {'pythonversion': list(sys.version_info)}
return {'pythonversion': tuple(sys.version_info)}
def pythonpath():
'''