python3: replace execfile usage

This commit is contained in:
Frédéric Péters 2018-03-25 16:16:58 +02:00
parent 8e5b2ee686
commit 0ff596b5e6
1 changed files with 1 additions and 1 deletions

View File

@ -315,4 +315,4 @@ NEWSLETTERS_CELL_ENABLED = False
local_settings_file = os.environ.get('COMBO_SETTINGS_FILE',
os.path.join(os.path.dirname(__file__), 'local_settings.py'))
if os.path.exists(local_settings_file):
execfile(local_settings_file)
exec(open(local_settings_file).read())