Created
August 25, 2010 16:14
-
-
Save dpaola2/549787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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