Commit graph

22 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
Sagar Vora
28cd2c66f9
fix(python 3.8): explicit digestmod in hmac.new 2020-05-03 18:15:22 +05:30
Suraj Shetty
6b77c10cc9 [Workflow] Added a check to enable/disable workflow action emails and test fix (#5668)
* Fix build and make py3 compatible

* Remove unused test since state edit check was removed

* Add toggle to enable or disable workflow action emails
2018-06-11 15:09:42 +05:30
Suraj Shetty
944626ed5e [Minor][Fix] Workflow action (#5665)
* Fix incorrect this reference

* Fix verify request for python 3

* Fix workflow validation
2018-06-08 16:33:39 +05:30
Rushabh Mehta
cfc7661159 [python-3] decode for verified_command.py 2018-06-06 14:35:48 +05:30
Aditya Hase
62af6bf37d Encode unicode strings before hmac 2017-09-27 01:08:07 +05:30
Rushabh Mehta
e71fb55702 Merge branch 'develop' into fix-urlencode 2017-08-11 13:01:24 +05:30
Aditya Hase
e324406c8a Import six.moves.urllib.parse.urlencode instead of urllib.urlencode 2017-08-11 00:38:26 +05:30
Aditya Hase
769338f136 Replaced all instances of basestring with six.string_types 2017-08-11 00:10:11 +05:30
Rushabh Mehta
c61bae3659 [fix] test for unsubscribe 2016-08-02 11:57:06 +05:30
Rushabh Mehta
5f1226683b [fixes] [minor] 2015-05-26 12:17:33 +05:30
Rushabh Mehta
ef0c6b44f7 [email] consistent email, website branding 2015-05-26 12:17:33 +05:30
Rushabh Mehta
99ca7d5f8a [email] fixed test cases for bulk emails 2015-03-19 17:15:44 +05:30
Rushabh Mehta
bead93693d [email] many fixes, bulk email, unsubscribe 2015-03-19 17:15:43 +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
5d4e39bef6 frappe/frappe#478, more changes, removed bean 2014-04-03 14:30:49 +05:30
Anand Doshi
1f0c1c8e43 Refactored get_url, verified command and other minor fixes 2014-03-19 16:34:25 +05:30
Pratik Vyas
96b0677d69 Update verified_command with new api url 2014-03-10 09:56:31 +05:30
Rushabh Mehta
024ddfcc5b -webnotes +frappe 💥 2014-02-14 14:55:11 +05:30
Renamed from webnotes/utils/verified_command.py (Browse further)