
from . import utils  # noqa
from . import relations  # noqa
from . import handlers  # noqa


from . import utils  # noqa
from . import handlers  # noqa

# relations doesn't work with stock charmhelpers and is being phased out in the
# layered charms, so this makes it conditional
try:
    from charmhelpers.core import charmframework  # noqa
except ImportError:
    pass
else:
    from . import relations  # noqa

Make relations import conditional for layers migration
Make relations import conditional for layers migration

  
  from . import utils  # noqa
- from . import relations  # noqa
  from . import handlers  # noqa
  
+ # relations doesn't work with stock charmhelpers and is being phased out in the
+ # layered charms, so this makes it conditional
+ try:
+     from charmhelpers.core import charmframework  # noqa
+ except ImportError:
+     pass
+ else:
+     from . import relations  # noqa
+ 
Make relations import conditional for layers migration
## Code Before:

from . import utils  # noqa
from . import relations  # noqa
from . import handlers  # noqa

## Instruction:
Make relations import conditional for layers migration
## Code After:

from . import utils  # noqa
from . import handlers  # noqa

# relations doesn't work with stock charmhelpers and is being phased out in the
# layered charms, so this makes it conditional
try:
    from charmhelpers.core import charmframework  # noqa
except ImportError:
    pass
else:
    from . import relations  # noqa
