Skip to content

Commit

Permalink
Import with statement in testsuite, Python 2.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
rduplain committed Sep 1, 2011
1 parent 780297e commit 37f9cb9
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask/testing.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """


from __future__ import with_statement

from contextlib import contextmanager from contextlib import contextmanager
from werkzeug.test import Client, EnvironBuilder from werkzeug.test import Client, EnvironBuilder
from flask import _request_ctx_stack from flask import _request_ctx_stack
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/__init__.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import os import os
import sys import sys
import flask import flask
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/basic.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import re import re
import flask import flask
import unittest import unittest
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/blueprints.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import flask import flask
import unittest import unittest
import warnings import warnings
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/deprecations.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase, catch_warnings from flask.testsuite import FlaskTestCase, catch_warnings
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/helpers.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import os import os
import flask import flask
import unittest import unittest
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/templating.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from flask.testsuite import FlaskTestCase
Expand Down
3 changes: 3 additions & 0 deletions flask/testsuite/testing.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
:copyright: (c) 2011 by Armin Ronacher. :copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """

from __future__ import with_statement

import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from flask.testsuite import FlaskTestCase
Expand Down

0 comments on commit 37f9cb9

Please sign in to comment.