瀏覽代碼

Fix #35

Crash on Windows

This also applies the same fix for OS X
oz123 10 年之前
父節點
當前提交
d59c1f0f34
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      pwman/ui/mac.py
  2. 3 3
      pwman/ui/win.py

+ 2 - 2
pwman/ui/mac.py

@@ -34,7 +34,7 @@ class PwmanCliMac(PwmanCli):
     inherit from PwmanCli, override the right functions...
     """
     def do_copy(self, args):
-        ids = self.get_ids(args)
+        ids = self._get_ids(args)
         if len(ids) > 1:
             print("Can only 1 password at a time...")
         try:
@@ -52,7 +52,7 @@ class PwmanCliMac(PwmanCli):
         self.do_copy(args)
 
     def do_open(self, args):
-        ids = self.get_ids(args)
+        ids = self._get_ids(args)
         if not args:
             self.help_open()
             return

+ 3 - 3
pwman/ui/win.py

@@ -1,4 +1,4 @@
-""""
+"""
 # ============================================================================
 # This file is part of Pwman3.
 #
@@ -165,7 +165,7 @@ class PwmanCliWin(PwmanCli):
             waituntil_enter(heardEnterWin, flushtimeout)
 
     def do_copy(self, args):
-        ids = self.get_ids(args)
+        ids = self._get_ids(args)
         if len(ids) > 1:
             print ("Can copy only 1 password at a time...")
             return None
@@ -181,7 +181,7 @@ class PwmanCliWin(PwmanCli):
             self.error(e)
 
     def do_open(self, args):
-        ids = self.get_ids(args)
+        ids = self._get_ids(args)
         if not args:
             self.help_open()
             return