1
0
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:
Joe Guo
2018-07-30 18:19:59 +12:00
committed by Douglas Bagnall
parent 7a07d42230
commit 542e91ef92
14 changed files with 42 additions and 0 deletions

View File

@ -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)