Skip to content

Commit

Permalink
Merge pull request #12 from akb89/develop
Browse files Browse the repository at this point in the history
No longer using len(seq) for testing empty lines
  • Loading branch information
akb89 authored Sep 12, 2019
2 parents e3733bd + 530818c commit 7e7e1fb
Show file tree
Hide file tree
Showing 2 changed files with 2 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='[email protected]',
long_description=long_description,
long_description_content_type='text/markdown',
version='1.0.1',
version='1.0.2',
url='https://github.com/akb89/witokit',
download_url='https://pypi.org/project/witokit/#files',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion witokit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _process(args):
with open(tmp_filepath, 'r', encoding='utf-8') as tmp_stream:
for line in tmp_stream:
line = line.strip()
if len(line) > 0:
if line:
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 7e7e1fb

Please sign in to comment.