aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setuptools/monkey.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/monkey.py b/setuptools/monkey.py
index 7a23641c..c9a52c61 100644
--- a/setuptools/monkey.py
+++ b/setuptools/monkey.py
@@ -37,9 +37,8 @@ def get_unpatched_class(cls):
while cls.__module__.startswith('setuptools'):
cls, = cls.__bases__
if not cls.__module__.startswith('distutils'):
- raise AssertionError(
- "distutils has already been patched by %r" % cls
- )
+ msg = "distutils has already been patched by %r" % cls
+ raise AssertionError(msg)
return cls