Author ptn
Recipients OG7, grahamd, i000, jnoller, ptn
Date 2009-06-10.13:58:01
SpamBayes Score 8.92958e-06
Marked as misclassified No
Message-id <1244642282.9.0.123774704077.issue5313@psf.upfronthosting.co.za>
In-reply-to
Content
Wouldn't it be more pythonic to just try sys.stdin.fileno() and catch 
the AtributeError too?

def _bootstrap(self):
       ....
            try:
                os.close(sys.stdin.fileno())
            except AtributeError:
                sys.stdin.close()
            except (OSError, ValueError):
                pass
History
Date User Action Args
2009-06-10 13:58:03ptnsetrecipients: + ptn, OG7, jnoller, grahamd, i000
2009-06-10 13:58:02ptnsetmessageid: <1244642282.9.0.123774704077.issue5313@psf.upfronthosting.co.za>
2009-06-10 13:58:01ptnlinkissue5313 messages
2009-06-10 13:58:01ptncreate