Skip to content

Commit

Permalink
Rename is_mac to is_macos
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed May 10, 2024
1 parent 5adef74 commit 91255b3
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/compulab/fit_statusb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/elgato/streamdeck/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_mini/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_plus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_alpha/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_omega/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/lifx/lifx/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/flag/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/mute/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/orb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/magic/hue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme_mini/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/mutesync/mutesync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/nanoleaf/nanoleaf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/philips/hue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/signify/wiz/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/thingm/blink1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/xiaomi/yeelight/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() or helper.is_mac() or helper.is_windows()
return helper.is_linux() or helper.is_macos() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def is_linux() -> bool:
return to_lower_case(platform.system()) == 'linux'


def is_mac() -> bool:
def is_macos() -> bool:
return to_lower_case(platform.system()) == 'darwin'


Expand Down
4 changes: 2 additions & 2 deletions tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def test_is_linux() -> None:
assert helper.is_linux() is not None


def test_is_mac() -> None:
assert helper.is_mac() is not None
def test_is_macos() -> None:
assert helper.is_macos() is not None


def test_is_windows() -> None:
Expand Down

0 comments on commit 91255b3

Please sign in to comment.