Created
June 2, 2019 05:08
-
-
Save guerbai/1b60fa4e4b367aee39aea98940352303 to your computer and use it in GitHub Desktop.
pop_none
This file contains 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
class ValueProcessUtils(object): | |
@classmethod | |
def pop_none(cls, **kwargs): | |
params = dict() | |
for key, value in kwargs.iteritems(): | |
if value is not None: | |
params.update({key: value}) | |
return params |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment