Commits

Marc Deslauriers committed 28ed1e5

Description: fix migration code so old databases get upgraded when a key is read
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-keyring/+bug/1042754

  • Participants
  • Parent commits 59a11c6

Comments (0)

Files changed (1)

File keyring/backend.py

         """
         pass
 
+    def _migrate(self, keyring_password=None):
+        """Convert older keyrings to the current format.
+        """
+        pass
+
     def _relocate_file(self):
         old_location = os.path.join(os.path.expanduser('~'), self.filename)
         new_location = self.file_path
         # load the passwords from the file
         config = ConfigParser.RawConfigParser()
         if os.path.exists(self.file_path):
+            self._migrate()
             config.read(self.file_path)
 
         # fetch the password