Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
format check.py and utils.py with black
Browse files Browse the repository at this point in the history
  • Loading branch information
levirs565 committed Jan 11, 2021
1 parent 5e0da73 commit c6b9599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion guiscrcpy/lib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ def _get_dimension_raw_noexcept(path, device_id=None):
stderr=PIPE,
)
else:
shell_adb = open_process(_("{} shell wm size".format(path)), stdout=PIPE, stderr=PIPE)
shell_adb = open_process(
_("{} shell wm size".format(path)), stdout=PIPE, stderr=PIPE
)
return shell_adb
3 changes: 2 additions & 1 deletion guiscrcpy/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def show_message_box(text, info_text="", buttons=QMessageBox.Ok):
message_box.setStandardButtons(buttons)
return message_box


def open_process(command, stdin=None, stdout=None, stderr=None, cwd=None):
# warning: CREATE_NO_WINDOW is added in Python 3.7
return Popen(
Expand All @@ -172,5 +173,5 @@ def open_process(command, stdin=None, stdout=None, stderr=None, cwd=None):
stdout=stdout,
stderr=stderr,
cwd=cwd,
creationflags=CREATE_NO_WINDOW
creationflags=CREATE_NO_WINDOW,
)

0 comments on commit c6b9599

Please sign in to comment.