Commits

Kang Zhang committed 4446dd1

Change the C extension set_password to raise an exception.

  • Participants
  • Parent commits 1f80d81

Comments (0)

Files changed (3)

File keyring/backends/gnome_keyring.c

 
     result = gnome_keyring_set_network_password_sync(NULL, username, realmstring,
                                      NULL, NULL, NULL, NULL, 0, password, &item_id);
-
-    return Py_BuildValue("i", (result!=GNOME_KEYRING_RESULT_OK));
+    
+    Py_RETURN_NONE;
 }
 
 

File keyring/backends/kde_kwallet.cpp

         PyErr_SetString(PyExc_OSError, "Can't write the password in the system");
         return NULL;
     }
-    return Py_BuildValue("i", write_success != true);
+    Py_RETURN_NONE;
 }
 
 

File keyring/backends/osx_keychain.c

         PyErr_SetString(PyExc_OSError, "Can't store password in Keychain");
         return NULL;
     }
-    
-    return Py_BuildValue("i",(status != 0));
+
+    Py_RETURN_NONE;
 }