Skip to content

sbulage/diaper

 
 

Repository files navigation

Sometimes you just need to put a diaper on it.

wat?

The diaper pattern, in its natural form:

def error_hider():
    try:
        do_something(arg1, arg2=True)
    except:
        pass

New and "improved" (cough)

import diaper

diaper(do_something, arg1, arg2=True)

# or, if you want, you can wrap a whole block of crap
with diaper:
    do_something(arg1, arg2=True)

# what diaper invocation would be complete without a little silliness
with diaper as nappy:
    assert diaper is nappy, "...in some parts of the world"

seriously?

I guess that's up to you...

DOCS

http://diaper.rtfd.org/

AUTHORS

BADGES

Build Status Coverage Status Documentation Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Makefile 2.4%