1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +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

@@ -18,7 +18,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
def _mock_subprocess_call(*args):
self.subprocess_args = list(*args)
if 'PGPASSFILE' in os.environ:
with open(os.environ['PGPASSFILE'], 'r') as f:
with open(os.environ['PGPASSFILE']) as f:
self.pgpass = f.read().strip() # ignore line endings
else:
self.pgpass = None