Skip to content

Commit

Permalink
Cleanup Print usage in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdynick authored and sommer committed Jul 9, 2010
1 parent f52c4e9 commit 6efefb4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/frontends/cmdline/loxodo.py
Expand Up @@ -54,9 +54,7 @@ def open_vault(self):
try:
self.vault_password = getpass("Vault password: ")
except EOFError:
print ""
print ""
print "Bye."
print "\n\nBye."
raise RuntimeError("No password given")
try:
self.vault = Vault(self.vault_password, filename=self.vault_file_name)
Expand All @@ -70,8 +68,7 @@ def open_vault(self):
except Vault.VaultFormatError:
print "Vault integrity check failed."
raise
print "... done."
print ""
print "... Done.\n"


def postloop(self):
Expand All @@ -89,8 +86,7 @@ def do_help(self, line):
cmd.Cmd.do_help(self, line)
return

print
print "Commands:"
print "\nCommands:"
print " ".join(("ls", "show", "quit"))
print

Expand Down Expand Up @@ -188,7 +184,7 @@ def complete_show(self, text, line, begidx, endidx):
return completions

def find_titles(self, regexp):
"Finds titles matching a regular expression. (Case insensitive)"
"Finds titles, username, group, or combination of all 3 matching a regular expression. (Case insensitive)"
matches = []
pat = re.compile(regexp, re.IGNORECASE)
for record in self.vault.records:
Expand Down

0 comments on commit 6efefb4

Please sign in to comment.