summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-04-27 09:03:58 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2020-04-27 09:03:58 +0200
commitde15854831d35dd332d2aded821191a4630b18ce (patch)
treed7147d987e3f70cc75be439b8684ab2705a01146
parent42e4b356de3d951b692082381e4a6c2a8aa36a3e (diff)
downloadastroid-git-de15854831d35dd332d2aded821191a4630b18ce.tar.gz
Transform read_module() into a lambda to prevent it being marked as a bound method
-rw-r--r--astroid/brain/brain_six.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/brain/brain_six.py b/astroid/brain/brain_six.py
index d531023d..0f81e1b4 100644
--- a/astroid/brain/brain_six.py
+++ b/astroid/brain/brain_six.py
@@ -51,7 +51,7 @@ from sys import intern
map = map
range = range
from importlib import reload
-reload_module = reload
+reload_module = lambda module: reload(module)
from functools import reduce
from shlex import quote as shlex_quote
from io import StringIO