Commit graph

9 commits

Author SHA1 Message Date
Ionuț Arțăriși
ba07f5bd81 Show line which caused the DeprecationWarning (#1831)
When raising a DeprecationWarning, show the line in the application code
which caused the warning, rather than the line in Flask

e.g. a file `app.py` with:

```python
from flask import Flask
from flask.ext.babel import Babel
```

will show:

```
app.py:2: ExtDeprecationWarning: Importing flask.ext.babel is
deprecated, use flask_babel instead.
```

instead of:

```
/home/mapleoin/venv/local/lib/python2.7/site-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
  .format(x=modname), ExtDeprecationWarning
```
2016-05-29 14:51:05 -07:00
Markus Unterwaditzer
d3d8a4694a Deprecate flask.ext
* Add deprecation warning to ext pkg

* Add docs on deprecation of flask.ext

* Improve deprecation warnings

* Add headers for better distinction, fix ordering issue of paragraphs
2016-04-02 21:06:30 +02:00
Eric Yang
7f678aaf5a Fix a typo
Maybe this is a typo?
2015-11-04 22:08:31 +08:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Thomas Waldmann
96b8ffbb29 always import from ._compat 2013-05-25 20:24:14 +02:00
Thomas Waldmann
e1d356fb71 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
2013-05-22 01:33:04 +02:00
Finbarr O'Callaghan
48f7cdd016 various typo fixes 2012-09-06 18:04:51 +01:00
Armin Ronacher
95c4dcb4d5 Refactored flask.ext process to not swallow exceptions on weird Pythons. 2011-09-27 13:33:23 +02:00