mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
PEP8: fix E301: expected 1 blank line, found 0
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
@ -20,6 +20,7 @@ from samba.gpclass import gp_ext
|
||||
|
||||
try:
|
||||
import importlib.util
|
||||
|
||||
def import_file(name, location):
|
||||
spec = importlib.util.spec_from_file_location(name, location)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
@ -27,6 +28,7 @@ try:
|
||||
return module
|
||||
except ImportError:
|
||||
import imp
|
||||
|
||||
def import_file(name, location):
|
||||
return imp.load_source(name, location)
|
||||
|
||||
|
Reference in New Issue
Block a user