Commit graph

9 commits

Author SHA1 Message Date
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Chinmay D. Pai
f239684740
chore: update werkzeug to 1.0.0
* move all werkzeug.wsgi and werkzeug.contrib imports to
  werkzeug.middleware to make things work.
* update pinned requirement to 1.0.0

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-07 12:16:42 +05:30
Rushabh Mehta
9f7791bca5 [website] route caching, bye bye sidebar, navbar search, blog cleanup 2015-03-12 16:31:14 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Rushabh Mehta
2f926f0136 fix to boilerplate, added Core module for Administrator and fixed layout in ControlImage in control.js 2014-05-06 17:17:40 +05:30
Anand Doshi
201385ec70 Added StaticDataMiddleware for serving files from mulitple sites, desktop background and positioning 2014-03-11 15:14:06 +05:30