Fix new flake8 errors (#7489)

This is a cherry-pick of 1a1da60ad2 (#7470)
to the release-v1.13.0 branch.
This commit is contained in:
Patrick Cloke 2020-05-13 08:24:50 -04:00 committed by GitHub
parent fa4af2c3af
commit edd3b0747c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 12 deletions

View file

@ -122,7 +122,7 @@ class ConfigLoadingTestCase(unittest.TestCase):
with open(self.file, "r") as f:
contents = f.readlines()
contents = [l for l in contents if needle not in l]
contents = [line for line in contents if needle not in line]
with open(self.file, "w") as f:
f.write("".join(contents))