Explorar el Código

fix debbuging print

Oz N Tiram hace 8 años
padre
commit
633e1d6567
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  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)))