On Wed, Apr 30, 2008 at 10:42 AM, Trent Nelson <[EMAIL PROTECTED]> wrote:
> > if os.name == "nt": > > _socketmethods = _socketmethods + ('ioctl',) > > + _is_windows = True > > +elif os.name == 'java': > > + from java.lang import System > > + _is_windows = 'windows' in System.getProperty('os.name').lower() > > +elif os.name == 'posix' and sys.platform == 'cygwin': > > + _is_windows = True > > Oops, that last line should have been: > > elif os.name == 'ce' or (os.name == 'posix' and sys.platform == 'cygwin'): > _is_windows = True > Why even bother to check os.name == 'posix' doesn't sys.platform == 'cygwin' mean its windows regardless of os.name?
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com