Skip to content
Myr

automated change using python-modernize: replace execfile

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thomas Waldmann · committed by Thomas Waldmann · parent 521398d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/config.py+1 added-1 removed
124 unmodified lines
125 filename = os.path.join(self.root_path, filename)126 d = imp.new_module('config')127 d.__file__ = filename128 try:129 execfile(filename, d.__dict__)129 exec(compile(open(filename).read(), filename, 'exec'), d.__dict__)130 except IOError, e:131 if silent and e.errno in (errno.ENOENT, errno.EISDIR):132 return False133 e.strerror = 'Unable to load configuration file (%s)' % e.strerror
35 unmodified lines