def __getattr__(self, name):
method = requests.__dict__.get(name.lower())
if not method:
return method
def _missing(*args, **kwargs):
if 'auth' not in kwargs:
kwargs['auth'] = NetrcBypassAuth()
if 'verify' not in kwargs:
kwargs['verify'] = False
return method(*args, **kwargs)
return _missing
# create class-of-a-class
评论列表
文章目录