Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1319 | pylint | fixing utils to ignore dund…
Browse files Browse the repository at this point in the history
…er calls
  • Loading branch information
snyaggarwal committed Jun 7, 2022
1 parent 0a5a8fe commit c4c3195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,11 @@ def api_get(url, user, **kwargs):


def set_current_user(func):
setattr(thread_locals, CURRENT_USER, func.__get__(func, local))
setattr(thread_locals, CURRENT_USER, func.__get__(func, local)) # pylint: disable=unnecessary-dunder-call


def set_request_url(func):
setattr(thread_locals, REQUEST_URL, func.__get__(func, local))
setattr(thread_locals, REQUEST_URL, func.__get__(func, local)) # pylint: disable=unnecessary-dunder-call


def get_current_user():
Expand Down

0 comments on commit c4c3195

Please sign in to comment.