
from .highlevel import Kernel

# Legacy support (DEPRECATED)
from .legacy_support import *
from ..bodies import get


def load(path='.', recursive=True, followlinks=False):
    return Kernel.load(**locals())

def unload(path='.', recursive=True, followlinks=False):
    return Kernel.unload(**locals())


from .highlevel import Kernel


def load(path='.', recursive=True, followlinks=False, force_reload=False):
    return Kernel.load(**locals())

def load_single(cls, path, extension=None, force_reload=False):
    return Kernel.load_single(**locals())

def unload(path='.', recursive=True, followlinks=False):
    return Kernel.unload(**locals())

Change the interface of the kernel submodule to prepare for the API change. * Remove legacy support * Add load_single() * Fix missing keyword argument in load()
Change the interface of the kernel submodule to prepare for the API change.
 * Remove legacy support
 * Add load_single()
 * Fix missing keyword argument in load()

  
  from .highlevel import Kernel
  
- # Legacy support (DEPRECATED)
- from .legacy_support import *
- from ..bodies import get
  
+ def load(path='.', recursive=True, followlinks=False, force_reload=False):
+     return Kernel.load(**locals())
  
- def load(path='.', recursive=True, followlinks=False):
+ def load_single(cls, path, extension=None, force_reload=False):
-     return Kernel.load(**locals())
+     return Kernel.load_single(**locals())
  
  def unload(path='.', recursive=True, followlinks=False):
      return Kernel.unload(**locals())
  
Change the interface of the kernel submodule to prepare for the API change. * Remove legacy support * Add load_single() * Fix missing keyword argument in load()
## Code Before:

from .highlevel import Kernel

# Legacy support (DEPRECATED)
from .legacy_support import *
from ..bodies import get


def load(path='.', recursive=True, followlinks=False):
    return Kernel.load(**locals())

def unload(path='.', recursive=True, followlinks=False):
    return Kernel.unload(**locals())

## Instruction:
Change the interface of the kernel submodule to prepare for the API change. * Remove legacy support * Add load_single() * Fix missing keyword argument in load()
## Code After:

from .highlevel import Kernel


def load(path='.', recursive=True, followlinks=False, force_reload=False):
    return Kernel.load(**locals())

def load_single(cls, path, extension=None, force_reload=False):
    return Kernel.load_single(**locals())

def unload(path='.', recursive=True, followlinks=False):
    return Kernel.unload(**locals())
