소스 검색

fix bug with printing message when doing copy

silly bug introduced by bad line formating
oz123 12 년 전
부모
커밋
81f6e86941
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      pwman/ui/cli.py

+ 6 - 3
pwman/ui/cli.py

@@ -565,6 +565,8 @@ class PwmanCli(cmd.Cmd):
         os.system('clear')
 
     def do_copy(self, args):
+        import ipdb
+        ipdb.set_trace()
         if self.hasxsel:
             ids = self.get_ids(args)
             if len(ids) > 1:
@@ -573,9 +575,10 @@ class PwmanCli(cmd.Cmd):
             try:
                 node = self._db.getnodes(ids)
                 text_to_clipboards(node[0].get_password())
-                print "copied password for %s@%s clipboard... " \
-                    + "erasing in 10 sec..." % (node[0].get_username(),
-                                                node[0].get_url())
+                print "copied password for {}@{} clipboard".format(
+                       node[0].get_username(), node[0].get_url())
+
+                print "erasing in 10 sec..."
                 time.sleep(10)
                 text_to_clipboards("")
             except Exception, e: