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.
* 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
* only remove cmd if exist
When calling this function from backend this line raises key error as there's no such key called cmd
* style: Simplify code
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
* Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)
* Replace frappe.db.sql with frappe.get_list
- Permission check for treeviews
* Optimize get_role_permissions
- Avoid setting of roles each time when is_perm_appicable is called
* Fix codacy
- Remove trailing whitespace
* Add parent filter
* Add ifnull check
* Replace frappe.db.sql with frappe.get_list
- Permission check for treeviews
* Optimize get_role_permissions
- Avoid setting of roles each time when is_perm_appicable is called
* Fix codacy
- Remove trailing whitespace