* 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
* fix(login): redirect user from login page if already logged in
the user should not be able to access the login page if a user session already exists. closes#6500.
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(test-website): fix website test
what is the point in writing tests if they don't really work/function as intended?
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(regex): do not replace '\' in rules
that defeats the entire purpose of creating rules, wtf?
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(test_website): change user using set_user()
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* redirect: prefix string with r to escape string literals
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>