forked from rook/rook
core: clean the import section
import all the libraries at top. Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
@@ -27,6 +27,8 @@ from hashlib import sha1 as sha
|
||||
from os import linesep as LINESEP
|
||||
from os import path
|
||||
import urllib.parse
|
||||
from email.utils import formatdate
|
||||
from requests.auth import AuthBase
|
||||
|
||||
ModuleNotFoundError = ImportError
|
||||
|
||||
@@ -65,11 +67,6 @@ except:
|
||||
from urllib.parse import urlparse, unquote
|
||||
from base64 import encodebytes as encodestring
|
||||
|
||||
from email.utils import formatdate
|
||||
|
||||
from requests.auth import AuthBase
|
||||
import requests
|
||||
|
||||
class ExecutionFailureException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user