Author serhiy.storchaka
Recipients asvetlov, chris.jerdonek, christian.heimes, eric.araujo, ezio.melotti, gregory.p.smith, lyapun, neologix, pitrou, r.david.murray, serhiy.storchaka
Date 2014-08-01.09:31:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406885476.38.0.77572952799.issue16353@psf.upfronthosting.co.za>
In-reply-to
Content
Should it be function? Why not use just a variable initialized at import time? The path to the default shell shouldn't change during the time of program execution.

if sys.platform == 'win32':
    default_shell = 'cmd.exe'
else:
    default_shell = '/bin/sh'
History
Date User Action Args
2014-08-01 09:31:16serhiy.storchakasetrecipients: + serhiy.storchaka, gregory.p.smith, pitrou, christian.heimes, ezio.melotti, eric.araujo, r.david.murray, asvetlov, chris.jerdonek, neologix, lyapun
2014-08-01 09:31:16serhiy.storchakasetmessageid: <1406885476.38.0.77572952799.issue16353@psf.upfronthosting.co.za>
2014-08-01 09:31:16serhiy.storchakalinkissue16353 messages
2014-08-01 09:31:16serhiy.storchakacreate