Browse Source

fix debbuging print

Oz N Tiram 8 năm trước cách đây
mục cha
commit
633e1d6567
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      pwman/ui/baseui.py

+ 4 - 5
pwman/ui/baseui.py

@@ -351,16 +351,15 @@ class BaseCommands(HelpUIMixin, AliasesMixin, BaseUtilsMixin):
             if re.search(r'^\d{4}$', umask):
                 os.umask(int(umask))
 
-    def do_cls(self, args):
-        pass
+    def do_cls(self, args):  # pragma: no cover
+        """clear the screen"""
+        os.system("clear")
 
     def do_exit(self, args):  # pragma: no cover
         """close the text console"""
         self._db.close()
         return True
 
-
-
     def do_export(self, args):
         """export the database to a given format"""
         try:
@@ -388,7 +387,7 @@ class BaseCommands(HelpUIMixin, AliasesMixin, BaseUtilsMixin):
 
         with open(filename) as f:
             for line in f.readlines():
-                print(f)
+                print(line)
 
         print("Successfuly exported database to {}".format(
             os.path.join(os.getcwd(), filename)))