[networking] Dusting module

This commit is contained in:
nemunaire 2015-10-12 06:28:52 +02:00
commit 2cd8f70cdc
3 changed files with 73 additions and 49 deletions

View file

@ -66,7 +66,7 @@ def fetch(url, onNone=_onNoneDefault):
if req is not None:
return req
else:
if onNone is not None:
if callable(onNone):
return onNone()
else:
return None