Commit graph

24 commits

Author SHA1 Message Date
Jon S. Stumpf
b46f5942a5
address flake8 issues 2019-06-01 06:31:35 -07:00
gokcegrbl
1b526c837e Comment on bare except usage in _compat.py
(Fixes pallets/flask#3227)
2019-05-31 16:27:51 +00:00
David Baumgold
025589ee76 Reformat with black
https://github.com/python/black
2019-05-06 16:28:58 -04:00
cclauss
47bdf9f26f
_compat.py: Use feature detection instead of version detection
When run on Python 3, linters such as Pylint and Flake8 will correctly flag __unicode__ and __long__ as _undefined names_ because _compat.py does not currently follow the Python porting best practice [___use feature detection instead of version detection___](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection).  This PR allows this project to pass those tests without adding any linter directives.
2019-01-25 09:44:29 +01:00
David Lord
3b45b82ec2
Merge branch '1.0-maintenance' 2019-01-06 10:36:54 -08:00
xtreak
e4ebbd3f5b
Fix DeprecationWarning on collections import 2019-01-06 10:04:00 -08:00
Matt Robenolt
25de45cbb6
Add support for PathLike objects in static file helpers
See: https://www.python.org/dev/peps/pep-0519/

This is mostly encountered with pathlib in python 3, but this API
suggests any PathLike object can be treated like a filepath with
`__fspath__` function.
2019-01-05 15:23:47 -08:00
David Lord
310fbfcf64
revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
Hendrik Makait
ae41df9a77 Check if app factory takes script_info argument and call it with(out) script_info as an argument depending on that 2017-05-23 13:48:42 -07:00
Markus Unterwaditzer
6e46d0cd39 Fix PyPy3 support and add bug references
Fix #1841
2016-06-13 20:33:57 +02:00
Mathias J. Hennig
b3767ae59f Addressing feedback from pull request 2015-07-27 15:32:23 +02:00
Mathias J. Hennig
c8f19f0afc Reimplement function with_metaclass() 2015-07-22 23:35:13 +02:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Shipeng Feng
bf3708609a Fixed typo in _compat.py 2014-06-15 12:42:34 +08:00
Carlos E. Garcia
52fa195d45 few mispelling errors 2014-04-23 10:46:38 -04:00
Armin Ronacher
6ec83e18dc Added a workaround for a pypy bug in context managers 2014-01-26 17:34:37 +00:00
Daniel Neuhäuser
52098e1e4f Happy New Year 2014 2014-01-02 19:21:07 +01:00
Armin Ronacher
6dfe933260 Removed an unnecessary as statement 2013-06-02 17:25:04 +01:00
Armin Ronacher
0190b770a1 Removed a bunch of code from _compat 2013-06-02 17:23:53 +01:00
Armin Ronacher
abc1505196 Fixed various issues on the Python 3 port 2013-05-30 15:07:18 +01:00
Thomas Waldmann
13cc69911c fix typos 2013-05-25 22:01: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
Thomas Waldmann
a503520ac5 copy _compat.py from flask in here (and adapt docstring) 2013-05-21 23:34:25 +02:00
Thomas Waldmann
1b753cb1b1 require 'six' in setup.py, add flask._compat for stuff not yet in 'six' 2013-05-18 17:47:40 +02:00