Skip to content

Instantly share code, notes, and snippets.

@dpaola2 dpaola2/gist:549787
Created Aug 25, 2010

Embed
What would you like to do?
def _resolve_host(func):
def resolve(host, *args, **kwargs):
if host in HOSTS:
return func(HOSTS[host], **kwargs)
return func(host, *args, **kwargs)
return resolve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.