Skip to content

Commit b1a783f

Browse files
fix : autopep8
1 parent 6bb1768 commit b1a783f

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

orangetool/orangetool_display.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""Orangetool display functions."""
33
from .orangetool_params import GENERAL_ERROR_MESSAGE
44

5+
56
def hdmi_controller(command, debug=False):
67
"""
78
Control hdmi port.

orangetool/orangetool_ip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import re
1010
import platform
1111

12+
1213
def internet(host="8.8.8.8", port=53, timeout=3):
1314
"""
1415
Check internet connections.

orangetool/orangetool_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
IP_PATTERN = r"(?:[0-9]{1,3}\.){3}[0-9]{1,3}"
77
GLOBAL_IP_API_1 = "http://ipinfo.io/ip"
88
GENERAL_ERROR_MESSAGE = "Error"
9-
ROOT_ERROR_MESSAGE = "Root Error"
9+
ROOT_ERROR_MESSAGE = "Root Error"

orangetool/orangetool_ram.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import psutil
44
from .orangetool_params import GENERAL_ERROR_MESSAGE
55

6+
67
def convert_bytes(num):
78
"""
89
Convert num to idiomatic byte unit.

orangetool/orangetool_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import random
77
from .orangetool_params import GENERAL_ERROR_MESSAGE, ROOT_ERROR_MESSAGE
88

9+
910
def mount_status(device_name, debug=False):
1011
"""
1112
Return addresses of mounted memory devices in dev by device name.
@@ -167,7 +168,7 @@ def usb_control(code, debug=False):
167168
"""
168169
try:
169170
command = sub.Popen(
170-
["chmod", "-R", code,"/media/"],
171+
["chmod", "-R", code, "/media/"],
171172
stderr=sub.PIPE,
172173
stdout=sub.PIPE,
173174
stdin=sub.PIPE)

0 commit comments

Comments
 (0)