ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko (didn't work on py 3.3 "as is") removed with_statement future imports, not needed any more needs more work on 2.7 as well as on 3.3
This commit is contained in:
parent
a503520ac5
commit
e1d356fb71
24 changed files with 36 additions and 87 deletions
|
|
@ -21,6 +21,7 @@
|
|||
"""
|
||||
import sys
|
||||
import os
|
||||
from flask._compat import reraise
|
||||
|
||||
|
||||
class ExtensionImporter(object):
|
||||
|
|
@ -77,7 +78,7 @@ class ExtensionImporter(object):
|
|||
# we swallow it and try the next choice. The skipped frame
|
||||
# is the one from __import__ above which we don't care about
|
||||
if self.is_important_traceback(realname, tb):
|
||||
raise exc_type, exc_value, tb.tb_next
|
||||
reraise(exc_type, exc_value, tb.tb_next)
|
||||
continue
|
||||
module = sys.modules[fullname] = sys.modules[realname]
|
||||
if '.' not in modname:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue