Skip to content

Instantly share code, notes, and snippets.

@dpaola2
Created August 25, 2010 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpaola2/549787 to your computer and use it in GitHub Desktop.
Save dpaola2/549787 to your computer and use it in GitHub Desktop.
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