Skip to content

Commit

Permalink
remove repo.vault.format()
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Sep 18, 2017
1 parent 8018631 commit 989eaee
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions bundlewrap/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,24 +308,6 @@ def encrypt_file(self, source_path, target_path, key='encrypt'):
f.write(fernet.encrypt(plaintext))
return target_file

def _format(self, format_str=None, faults=None):
return format_str.format(*[fault.value for fault in faults])

def format(self, format_str, *faults):
"""
Returns a Fault for a string formatted with the given Faults,
e.g.:
vault.format("password: {}", vault.password_for("something"))
DEPRECATED, remove in 3.0, use Fault.format_into instead.
"""
return Fault(
self._format,
format_str=format_str,
faults=faults,
)

def human_password_for(
self, identifier, digits=2, key='generate', per_word=3, words=4,
):
Expand Down

0 comments on commit 989eaee

Please sign in to comment.