Skip to content

Commit

Permalink
Merge pull request #11 from akb89/develop
Browse files Browse the repository at this point in the history
No longer printing out empty lines for cleaner dumps
  • Loading branch information
akb89 authored Sep 12, 2019
2 parents d6af1eb + c149ee1 commit e3733bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
author_email='akb@3azouz.net',
long_description=long_description,
long_description_content_type='text/markdown',
version='1.0.0',
version='1.0.1',
url='https://github.com/akb89/witokit',
download_url='https://pypi.org/project/witokit/#files',
license='MIT',
Expand Down
3 changes: 2 additions & 1 deletion witokit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def _process(args):
with open(tmp_filepath, 'r', encoding='utf-8') as tmp_stream:
for line in tmp_stream:
line = line.strip()
print(line, file=output_strm)
if len(line) > 0:
print(line, file=output_strm)
logger.info('Done processing content of Wikipedia archives')
shutil.rmtree(futils.get_tmp_dirpath(args.wiki_input_dirpath))

Expand Down

0 comments on commit e3733bd

Please sign in to comment.