Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
43cfe705
Commit
43cfe705
authored
9 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Extend WordList docstring.
parent
e97d9afe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
diceware/wordlist.py
+16
-0
16 additions, 0 deletions
diceware/wordlist.py
with
16 additions
and
0 deletions
diceware/wordlist.py
+
16
−
0
View file @
43cfe705
...
...
@@ -147,6 +147,22 @@ class WordList(object):
opened file. Opened files must be open for reading, of course.
Please note that open file descriptors are not closed after reading.
Wordlist files are expected to contain words, one word per
line. Empty lines are ignored, also whitespaces before or trailing
a line are stripped. If a
"
word
"
contains inner whitespaces, then
these are preserved.
The input file can be a signed wordlist. Signed wordlists are
expected to be ordinary lists of words but with ASCII armored
signatures (as described in RFC 4880).
In case of signed wordlists the signature headers/footers are
stripped and the contained list of words is read.
WordList are generators. That means, that you can retrieve the
words of a wordlist by iterating over an instance of `WordList`.
"""
def
__init__
(
self
,
path_or_filelike
=
None
):
self
.
path
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment