Projet

Général

Profil

0001-debian-don-t-use-execfile-to-load-settings-python3-3.patch

Frédéric Péters, 18 septembre 2019 09:57

Télécharger (1001 octets)

Voir les différences:

Subject: [PATCH] debian: don't use execfile() to load settings (python3)
 (#36214)

 debian/debian_config.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
debian/debian_config.py
7 7
#
8 8
# hobotization (multitenant)
9 9
#
10
execfile('/usr/lib/hobo/debian_config_common.py')
10
exec(open('/usr/lib/hobo/debian_config_common.py').read())
11 11

  
12 12
#
13 13
# local settings
14 14
#
15
execfile(os.path.join(ETC_DIR, 'settings.py'))
15
exec(open(os.path.join(ETC_DIR, 'settings.py').read()))
16 16

  
17 17
# run additional settings snippets
18
execfile('/usr/lib/hobo/debian_config_settings_d.py')
18
exec(open('/usr/lib/hobo/debian_config_settings_d.py').read())
19
-