On Wed, Apr 30, 2008 at 10:42 AM, Trent Nelson <tnelson at onresolve.com> 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20080501/68dc0f51/attachment.htm>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4