🎨 Switch to use of isort
This commit is contained in:
1 parent
1f93b2355a
commit
fbfb34df58
137 files changed
+822
-820
No files matched your search
@@ -26,9 +26,10 @@ class OctoPrintDevelCommands(click.MultiCommand):
|
||||
def __init__(self, *args, **kwargs):
|
||||
click.MultiCommand.__init__(self, *args, **kwargs)
|
||||
|
||||
from octoprint.util.commandline import CommandlineCaller
|
||||
from functools import partial
|
||||
|
||||
from octoprint.util.commandline import CommandlineCaller
|
||||
|
||||
def log_util(f):
|
||||
def log(*lines):
|
||||
for line in lines:
|
||||
@@ -171,8 +172,8 @@ class OctoPrintDevelCommands(click.MultiCommand):
|
||||
# that tries to fix such permissions
|
||||
def onerror(func, path, exc_info):
|
||||
"""Originally from http://stackoverflow.com/a/2656405/2028598"""
|
||||
import stat
|
||||
import os
|
||||
import stat
|
||||
|
||||
if not os.access(path, os.W_OK):
|
||||
os.chmod(path, stat.S_IWUSR)
|
||||
|
||||
Reference in new issue
Block a user