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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user