Skip to content

Commit

Permalink
minor fix for linter (facebookresearch#1360)
Browse files Browse the repository at this point in the history
Summary:
# Before submitting

- [ ] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
- [ ] Did you read the [contributor guideline](https://github.com/pytorch/fairseq/blob/master/CONTRIBUTING.md)?
- [ ] Did you make sure to update the docs?
- [ ] Did you write any new necessary tests?

## What does this PR do?
Fixes # (issue).

## PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

## Did you have fun?
Make sure you had fun coding �

Pull Request resolved: fairinternal/fairseq-py#1360

Reviewed By: myleott

Differential Revision: D24393217

Pulled By: huihuifan

fbshipit-source-id: a110ef6958b1e15cd8c4e23b610db5cfc994f06d
  • Loading branch information
huihuifan authored and facebook-github-bot committed Oct 19, 2020
1 parent 65e11a3 commit e3168f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/m2m_100/process_data/remove_too_much_punc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ def main(args):
with open(args.bitext + '.' + args.src_lang, 'wt', encoding=args.encoding) as fsrc:
with open(args.bitext + '.' + args.tgt_lang, 'wt', encoding=args.encoding) as ftgt:
line = tsv.readline()
if not line:
continue
fields = line.split('\t')

src, tgt = fields[1], fields[2]
Expand Down

0 comments on commit e3168f7

Please sign in to comment.