Skip to content

Commit

Permalink
Rename a function to use only lowercase characters
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Apr 19, 2019
1 parent 6f45c7f commit 377e82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylint/checkers/stdlib.py
Expand Up @@ -254,7 +254,7 @@ def _check_bad_thread_instantiation(self, node):
if not node.kwargs and not node.keywords and len(node.args) <= 1:
self.add_message("bad-thread-instantiation", node=node)

def _check_for_preexec_fn_in_Popen(self, node):
def _check_for_preexec_fn_in_popen(self, node):
if node.keywords:
for keyword in node.keywords:
if keyword.arg == "preexec_fn":
Expand Down Expand Up @@ -298,7 +298,7 @@ def visit_call(self, node):
if inferred.qname() == THREADING_THREAD:
self._check_bad_thread_instantiation(node)
elif inferred.qname() == SUBPROCESS_POPEN:
self._check_for_preexec_fn_in_Popen(node)
self._check_for_preexec_fn_in_popen(node)
elif isinstance(inferred, astroid.FunctionDef):
name = inferred.qname()
if name == COPY_COPY:
Expand Down

0 comments on commit 377e82f

Please sign in to comment.