~mbruzek/charm-helpers/docstrings

« back to all changes in this revision

Viewing changes to charmhelpers/core/hookenv.py

  • Committer: Matthew Bruzek
  • Date: 2016-04-07 20:51:48 UTC
  • Revision ID: matthew.bruzek@canonical.com-20160407205148-1ldkebigk1uyjv0z
Adding docstring to a confusing method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
832
832
 
833
833
 
834
834
def translate_exc(from_exc, to_exc):
 
835
    """Change one exception to another exception type when used a decorator."""
835
836
    def inner_translate_exc1(f):
836
837
        @wraps(f)
837
838
        def inner_translate_exc2(*args, **kwargs):