1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Removed default mode='r' argument from calls to open().

This commit is contained in:
Jon Dufresne
2019-01-27 08:30:20 -08:00
committed by Tim Graham
parent ce7293bc91
commit 7e3bf2662b
11 changed files with 43 additions and 43 deletions

View File

@@ -99,7 +99,7 @@ class TestUtilsHtml(SimpleTestCase):
for filename in ('strip_tags1.html', 'strip_tags2.txt'):
with self.subTest(filename=filename):
path = os.path.join(os.path.dirname(__file__), 'files', filename)
with open(path, 'r') as fp:
with open(path) as fp:
content = fp.read()
start = datetime.now()
stripped = strip_tags(content)