Skip to content

Commit

Permalink
Merge pull request #318 from mambocab/is_win-idiomatic
Browse files Browse the repository at this point in the history
makes is_win more readable and idiomatic
  • Loading branch information
ptnapoleon committed Jun 30, 2015
2 parents 7bc7467 + 1a2265f commit 9749956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccmlib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def check_win_requirements():
sys.exit("ERROR! 64-bit os and 32-bit python distribution found. ccm requires matching architectures.")

def is_win():
return True if sys.platform == "cygwin" or sys.platform == "win32" else False
return sys.platform in ("cygwin", "win32")

def is_ps_unrestricted():
if not is_win():
Expand Down

0 comments on commit 9749956

Please sign in to comment.