* perf: reduce DB calls made in `get_fetch_values`
* fix: ensure return value is same as before
* test: add test for `frappe.model.utils.get_fetch_values`
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
Converted all possible usages of re.* that weren't compiling the regex
separately and re-using it. Separated out the compiled patterns as
global variables. Repetitive patterns could be made DRY-er.
Would be nicer to have all regexes in a single module so that we could
re-use better, keep track of outdated, and keep checks for possible
reDos' etc
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
* add new docfield fetch_from - serves as add_fetch
* replace options.split with fetch_from.split
* copied data from options to fetch_from
* patch to update fetch_from for docfield, custom_field and property_setter
* update tests according to fetch_from change
* introduces build status for local fork
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range
* converts xrange to range using six.moves.range
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* converts xrange to range using six.moves.range7
* Revert "introduces build status for local fork"
This reverts commit 61f40983d0b3c6725369171ab850a18e5c029cc4.