Commits

Jonathan Ballet committed ac25de4

Add doc and fix indentation

  • Participants
  • Parent commits 07d3c20

Comments (0)

Files changed (2)

File keyring/backend.py

         return status
 
     def _getpass(self, *args, **kwargs):
+        """Wrap getpass.getpass(), so that we can override it when testing.
+        """
+
         return getpass.getpass(*args, **kwargs)
 
     def _init_file(self):

File keyring/tests/test_backend.py

     return True
 
 def is_winvault_supported():
-        try:
-            from keyring.backend import WinVaultKeyring
-            if sys.platform in ['win32'] and sys.getwindowsversion().major >= 6:
-                return True
-        except ImportError:
-            pass
-        return False
+    try:
+        from keyring.backend import WinVaultKeyring
+        if sys.platform in ['win32'] and sys.getwindowsversion().major >= 6:
+            return True
+    except ImportError:
+        pass
+    return False
 
 
 class BackendBasicTestCase(unittest.TestCase):