Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
Reorder import/constants in Daybed main file
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Nov 6, 2014
1 parent e6d735a commit b0f0485
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions daybed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
import logging
import pkg_resources


#: Module version, as defined in PEP-0396.
__version__ = pkg_resources.get_distribution(__package__).version

logger = logging.getLogger(__name__)

import six
from cornice import Service
from pyramid import httpexceptions
Expand All @@ -22,6 +16,15 @@
from pyramid_hawkauth import HawkAuthenticationPolicy
from pyramid_multiauth import MultiAuthenticationPolicy

#: Module version, as defined in PEP-0396.
__version__ = pkg_resources.get_distribution(__package__).version

# API main version
API_VERSION = 'v%s' % __version__.split('.')[0]

# Common logger
logger = logging.getLogger(__name__)

# Common TranslationString
TranslationString = TranslationStringFactory(__name__)

Expand All @@ -34,9 +37,6 @@
from daybed import indexer, events


API_VERSION = 'v%s' % __version__.split('.')[0]


def settings_expandvars(settings):
"""Expands all environment variables in a settings dictionary.
"""
Expand Down

0 comments on commit b0f0485

Please sign in to comment.