dev: code improvements and minor performance upgrades (#2201)
* dev: remove len for empty comparison * dev: using in instead of multiple ors * dev: assign expression to empty variables * dev: use f-string * dev: remove list comprehension and use generators * dev: remove assert from paginator * dev: use is for identity comparison with singleton * dev: remove unnecessary else statements * dev: fix does not exists error for both project and workspace * dev: remove reimports * dev: iterate a dictionary * dev: remove unused commented code * dev: remove redefinition * dev: remove unused imports * dev: remove unused imports * dev: remove unnecessary f strings * dev: remove unused variables * dev: use literal structure to create the data structure * dev: add empty lines at the end of the file * dev: remove user middleware * dev: remove unnecessary default None
This commit is contained in:
parent
d63e7cf254
commit
7249f84e18
46 changed files with 51 additions and 157 deletions
|
|
@ -17,4 +17,4 @@ def import_submodules(context, root_module, path):
|
|||
for k, v in six.iteritems(vars(module)):
|
||||
if not k.startswith('_'):
|
||||
context[k] = v
|
||||
context[module_name] = module
|
||||
context[module_name] = module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue