def _replace_none ( self , aDict ) : for k , v in aDict . items ( ) : if v is None : aDict [ k ] = 'none'
python how to set the value is empty of a dictionary
Replace all None values in a dict with none
def _replace_none(self, aDict):
        """ Replace all None values in a dict with 'none' """
        for k, v in aDict.items():
            if v is None:
                aDict[k] = 'none'