Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rixvet opened this issue Jun 21, 2022 · 0 comments
Open

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

rixvet opened this issue Jun 21, 2022 · 0 comments

Comments

@rixvet
Copy link
Member

rixvet commented Jun 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant