Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated from_pyfile so its dynamic module creation uses the imp modul…

…e instead of type.

Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
  • Loading branch information...
commit 549dd4c4a39b8a8bd5952b912c36c5fbb8e66ad5 1 parent 98ee2a1
@jbweber jbweber authored mitsuhiko committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  flask/config.py
View
3  flask/config.py
@@ -11,6 +11,7 @@
from __future__ import with_statement
+import imp
import os
import sys
@@ -114,7 +115,7 @@ def from_pyfile(self, filename):
root path.
"""
filename = os.path.join(self.root_path, filename)
- d = type(sys)('config')
+ d = imp.new_module('config')
d.__file__ = filename
try:
execfile(filename, d.__dict__)
Please sign in to comment.
Something went wrong with that request. Please try again.