Most of the changes are simple indentation and blank lines spaces. There was
also some import fixes that shuldn't change any behavior.
Probably the biggest change was in the method has_permission() of
PatchewPermission class (api/rest.py). Firstly the use of backslash inside
braces is redundant (to break lines). So n order to remove the backslashes
and trying to make the permission conditions more readable I've tried the
following approach.
If these changes be accepted I'm willing to continue applying it on other files.
Most of the changes are simple indentation and blank lines spaces. There was also some import fixes that shuldn't change any behavior.
Probably the biggest change was in the method
has_permission()
ofPatchewPermission
class (api/rest.py
). Firstly the use of backslash inside braces is redundant (to break lines). So n order to remove the backslashes and trying to make the permission conditions more readable I've tried the following approach.If these changes be accepted I'm willing to continue applying it on other files.