Remove invalid "encoding" parameter
Get rid of the linter error: openstack_dashboard/management/commands/migrate_settings.py:117:19: E1123: Unexpected keyword argument 'encoding' in function call (unexpected-keyword-arg) Change-Id: I4a8d2c7e1296541e5de03e936d97f90d6c368fd3 Signed-off-by: Radomir Dopieralski <openstack@dopieralski.pl>
This commit is contained in:
@@ -114,8 +114,7 @@ class Command(BaseCommand):
|
||||
"""
|
||||
|
||||
with DirContext(self.local_settings_dir) as dircontext:
|
||||
if not os.path.exists(self.local_settings_diff,
|
||||
encoding="utf-8") or force:
|
||||
if not os.path.exists(self.local_settings_diff) or force:
|
||||
with open(self.local_settings_example, 'r',
|
||||
encoding="utf-8") as fp:
|
||||
example_lines = fp.readlines()
|
||||
|
||||
Reference in New Issue
Block a user