304e928 python: Use Py_CLEAR

Authored and Committed by nsoffer 4 years ago
    python: Use Py_CLEAR
    
    Instead of:
    
       Py_DECREF(obj);
       obj = NULL;
    
    We can use:
    
       Py_CLEAR(obj);
    
    Signed-off-by: Nir Soffer <nsoffer@redhat.com>
    
        
file modified
+1 -2