diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 12:55:28 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 12:55:28 -0400 |
commit | c49d0a044c0483f956902068a87f732b38cbbf6e (patch) | |
tree | 7a25e916e1276b89f72374118b4b8153bf354929 /setuptools/monkey.py | |
parent | 7756f651df47dc870e886c1b13c5b48068c2dd5b (diff) | |
download | external_python_setuptools-c49d0a044c0483f956902068a87f732b38cbbf6e.tar.gz external_python_setuptools-c49d0a044c0483f956902068a87f732b38cbbf6e.tar.bz2 external_python_setuptools-c49d0a044c0483f956902068a87f732b38cbbf6e.zip |
Extract a variable for nicer indentation.
Diffstat (limited to 'setuptools/monkey.py')
-rw-r--r-- | setuptools/monkey.py | 5 |
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 |