from malibu import command  # noqa
from malibu import config  # noqa
from malibu import database  # noqa
from malibu import design  # noqa
from malibu import text  # noqa
from malibu import util  # noqa

import subprocess

__git_label__ = ''
try:
    __git_label__ = subprocess.check_output(
        [
            'git',
            'rev-parse',
            '--short',
            'HEAD'
        ])
except (subprocess.CalledProcessError, IOError):
    __git_label__ = 'RELEASE'

__version__ = '0.1.8-7'
__release__ = '{}-{}'.format(__version__, __git_label__).strip('\n')
__doc__ = """
malibu is a collection of classes and utilities that make writing code
a little bit easier and a little less tedious.

The whole point of this library is to have a small codebase that could
be easily reused across projects with nice, easily loadable chunks that
can be used disjointly.
"""

from malibu import command  # noqa
from malibu import config  # noqa
from malibu import database  # noqa
from malibu import design  # noqa
from malibu import text  # noqa
from malibu import util  # noqa

import subprocess

__git_label__ = ''
try:
    __git_label__ = subprocess.check_output(
        [
            'git',
            'rev-parse',
            '--short',
            'HEAD'
        ])
except (subprocess.CalledProcessError, IOError):
    __git_label__ = 'RELEASE'
finally:
    __git_label__ = __git_label__.decode('utf-8').strip()

__version__ = '0.1.8-7'
__release__ = '{}-{}'.format(__version__, __git_label__)
__doc__ = """
malibu is a collection of classes and utilities that make writing code
a little bit easier and a little less tedious.

The whole point of this library is to have a small codebase that could
be easily reused across projects with nice, easily loadable chunks that
can be used disjointly.
"""

Remove unnecessary strip, add finally for release tagger
0.1.8: Remove unnecessary strip, add finally for release tagger

  from malibu import command  # noqa
  from malibu import config  # noqa
  from malibu import database  # noqa
  from malibu import design  # noqa
  from malibu import text  # noqa
  from malibu import util  # noqa
  
  import subprocess
  
  __git_label__ = ''
  try:
      __git_label__ = subprocess.check_output(
          [
              'git',
              'rev-parse',
              '--short',
              'HEAD'
          ])
  except (subprocess.CalledProcessError, IOError):
      __git_label__ = 'RELEASE'
+ finally:
+     __git_label__ = __git_label__.decode('utf-8').strip()
  
  __version__ = '0.1.8-7'
- __release__ = '{}-{}'.format(__version__, __git_label__).strip('\n')
+ __release__ = '{}-{}'.format(__version__, __git_label__)
  __doc__ = """
  malibu is a collection of classes and utilities that make writing code
  a little bit easier and a little less tedious.
  
  The whole point of this library is to have a small codebase that could
  be easily reused across projects with nice, easily loadable chunks that
  can be used disjointly.
  """
  
Remove unnecessary strip, add finally for release tagger
## Code Before:
from malibu import command  # noqa
from malibu import config  # noqa
from malibu import database  # noqa
from malibu import design  # noqa
from malibu import text  # noqa
from malibu import util  # noqa

import subprocess

__git_label__ = ''
try:
    __git_label__ = subprocess.check_output(
        [
            'git',
            'rev-parse',
            '--short',
            'HEAD'
        ])
except (subprocess.CalledProcessError, IOError):
    __git_label__ = 'RELEASE'

__version__ = '0.1.8-7'
__release__ = '{}-{}'.format(__version__, __git_label__).strip('\n')
__doc__ = """
malibu is a collection of classes and utilities that make writing code
a little bit easier and a little less tedious.

The whole point of this library is to have a small codebase that could
be easily reused across projects with nice, easily loadable chunks that
can be used disjointly.
"""

## Instruction:
Remove unnecessary strip, add finally for release tagger
## Code After:
from malibu import command  # noqa
from malibu import config  # noqa
from malibu import database  # noqa
from malibu import design  # noqa
from malibu import text  # noqa
from malibu import util  # noqa

import subprocess

__git_label__ = ''
try:
    __git_label__ = subprocess.check_output(
        [
            'git',
            'rev-parse',
            '--short',
            'HEAD'
        ])
except (subprocess.CalledProcessError, IOError):
    __git_label__ = 'RELEASE'
finally:
    __git_label__ = __git_label__.decode('utf-8').strip()

__version__ = '0.1.8-7'
__release__ = '{}-{}'.format(__version__, __git_label__)
__doc__ = """
malibu is a collection of classes and utilities that make writing code
a little bit easier and a little less tedious.

The whole point of this library is to have a small codebase that could
be easily reused across projects with nice, easily loadable chunks that
can be used disjointly.
"""
