mirror of https://github.com/lanjelot/patator
Fixes on_windows() method when running under OSX
on_windows() checks platform.system().lower() == 'win' However, under OSX the returned string is 'Darwin', matching 'win' ;) According to https://docs.python.org/2/library/platform.html, for Windows systems it should return 'Windows'. I just changed the comparison against 'Win' w/o calling lower(). Hopefully it works well on all Windows. It does work well on OSX :Ppull/12/head
parent
b08d5357dc
commit
e6b7be52f7
Loading…
Reference in New Issue