saltstack/salt — pull request #2769 by thekuffs (2012-12-02 05:01:14+00:00)
Title: Remove redundant fcntl import

* Cleaned up fopen wrapper for fcntl conditions

I ran into an issue trying to run Salt on my Windows systems:

```
Traceback (most recent call last):
File "", line 6, in
File "__main__.py", line 726, in
File "__main__.py", line 332, in bootstrap
File "__main__.py", line 359, in chainload
File "__main__.py", line 715, in _chainload
File "__main__.py", line 128, in
File "__main__firehost-mgmt__.py", line 9, in
File "salt/__init__.py", line 13, in
File "salt/utils/__init__.py", line 12, in
ImportError: No module named fcntl
```

`salt/utils/__init__.py` had a redundant import for `fcntl` that was already multi platform safe. I've removed the unsafe import and improved the semantics of the conditionals surrounding its use.