Skip to content

empty lines in outputdict with --remove-puncuation  #32

@rixvet

Description

@rixvet

What?
While demeuking a file with --remove-punctuation with lines which contains all punctuation the resulting dictionary lines contains multiple blanks lines,

Reproduction?

$cat <<EOF > foo.dict
first-password
-
-+
-+-
-+-+
-+-+-
-+-+-+
-+-+-+-
-+-+-+-+
-+-+-+-+-
-+-+-+-+-+
-+-+-+-+-+-
-+-+-+-+-+-+
-+-+-+-+-+-+-
example
foobar
EOF

$ python3 demeuk.py -i foo.dict -o bar.dict --remove-punctuation

 uniq -c bar.dict
      1 firstpassword
     13
      1 example
      1 foobar

Expects?
Empty lines (or duplicated entries) to be removed from results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions