Skip to content

Commit 17ac645

Browse files
fix : autopep8 #36
1 parent d37fe1a commit 17ac645

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

orangetool/orangetool_storage.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def mount(device_name, mount_address=None, debug=False):
152152
print(str(e))
153153
return "Error"
154154

155+
155156
def usb_control(code, debug=False):
156157
"""
157158
Control different usb options.
@@ -176,6 +177,7 @@ def usb_control(code, debug=False):
176177
print(str(e))
177178
return "Error"
178179

180+
179181
def usb_on(debug=False):
180182
"""
181183
Shortcut for enable usb (need sudo).
@@ -184,7 +186,8 @@ def usb_on(debug=False):
184186
:type debug:bool
185187
:return: None
186188
"""
187-
usb_control("777",debug)
189+
usb_control("777", debug)
190+
188191

189192
def usb_off(debug=False):
190193
"""
@@ -194,4 +197,4 @@ def usb_off(debug=False):
194197
:type debug:bool
195198
:return: None
196199
"""
197-
usb_control("000", debug)
200+
usb_control("000", debug)

orangetool/orangetool_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def version():
131131
:return: return orangetool-version number as string
132132
"""
133133
tprint("orangetool", font="bulbhead")
134-
tprint("v"+ORANGETOOL_VERSION,font="bulbhead")
134+
tprint("v" + ORANGETOOL_VERSION, font="bulbhead")
135135

136136

137137
def wakeup(day=0, hour=0, minute=0, debug=False):
@@ -199,6 +199,7 @@ def sleep(debug=False):
199199
"""
200200
power_control("pm-suspend", debug)
201201

202+
202203
def hibernate(debug=False):
203204
"""
204205
Shortcut for hibernate command (need sudo).
@@ -230,4 +231,3 @@ def restart(debug=False):
230231
:return: None
231232
"""
232233
power_control("reboot", debug)
233-

0 commit comments

Comments
 (0)