diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 09:09:59 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-10-29 09:09:59 +0000 |
commit | 3cb37bbdb4bdf773b7bc0098b8d0cf940288a883 (patch) | |
tree | 6baee7110d71e96ea928ea44c1fe7bc1a49a4439 /numpy/distutils/core.py | |
parent | dea664f86f0f24f0f999945e20f9b2042d6b159c (diff) | |
download | numpy-3cb37bbdb4bdf773b7bc0098b8d0cf940288a883.tar.gz |
Using the in operator to find substrings. It is shorter and easier to understand.
Diffstat (limited to 'numpy/distutils/core.py')
-rw-r--r-- | numpy/distutils/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/core.py b/numpy/distutils/core.py index 5ae6353f2..5e2ab408b 100644 --- a/numpy/distutils/core.py +++ b/numpy/distutils/core.py @@ -92,7 +92,7 @@ def get_distribution(always=False): # We can't use isinstance, as the DistributionWithoutHelpCommands # class is local to a function in setuptools.command.easy_install if dist is not None and \ - repr(dist).find('DistributionWithoutHelpCommands') != -1: + 'DistributionWithoutHelpCommands' in repr(dist): dist = None if always and dist is None: dist = distutils.dist.Distribution() |