summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-02-22 12:41:27 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-27 21:23:42 +0100
commitfe8587b60ad3dc61192fc1e37ecee19cbf518d69 (patch)
treea498ec1f6e7cb4377b3431f41cc757bf9cbc31fc
parent04b048132c51413d2f74f03c63047c0d08e2ddac (diff)
downloadastroid-git-fe8587b60ad3dc61192fc1e37ecee19cbf518d69.tar.gz
Fix trailing whitespaces
-rw-r--r--COPYING.LESSER18
-rw-r--r--ChangeLog2
-rw-r--r--astroid/brain/brain_type.py4
-rw-r--r--astroid/interpreter/_import/spec.py2
-rw-r--r--astroid/interpreter/objectmodel.py2
-rw-r--r--doc/release.txt2
6 files changed, 15 insertions, 15 deletions
diff --git a/COPYING.LESSER b/COPYING.LESSER
index 5522aa5f..182e0fbe 100644
--- a/COPYING.LESSER
+++ b/COPYING.LESSER
@@ -57,7 +57,7 @@ modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
-
+
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
@@ -113,7 +113,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
-
+
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -160,7 +160,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
-
+
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
@@ -218,7 +218,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
-
+
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
@@ -269,7 +269,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
-
+
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
@@ -331,7 +331,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
-
+
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
@@ -372,7 +372,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
-
+
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
@@ -425,7 +425,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
-
+
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
@@ -459,7 +459,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
-
+
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
diff --git a/ChangeLog b/ChangeLog
index 519fa249..a11e0766 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,7 +6,7 @@ What's New in astroid 2.5.1?
============================
Release Date: TBA
-* The ``context.path`` is reverted to a set because otherwise it leds to false positives
+* The ``context.path`` is reverted to a set because otherwise it leds to false positives
for non `numpy` functions.
Closes #895 #899
diff --git a/astroid/brain/brain_type.py b/astroid/brain/brain_type.py
index f09bd16d..dada081b 100644
--- a/astroid/brain/brain_type.py
+++ b/astroid/brain/brain_type.py
@@ -8,9 +8,9 @@ to write str[int].
Guido Van Rossum proposed a hack to handle this in the interpreter:
https://github.com/python/cpython/blob/master/Objects/abstract.c#L186-L189
-This brain follows the same logic. It is no wise to add permanently the __class_getitem__ method
+This brain follows the same logic. It is no wise to add permanently the __class_getitem__ method
to the type object. Instead we choose to add it only in the case of a subscript node
-which inside name node is type.
+which inside name node is type.
Doing this type[int] is allowed whereas str[int] is not.
Thanks to Lukasz Langa for fruitful discussion.
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py
index 8dd2a922..9984dd15 100644
--- a/astroid/interpreter/_import/spec.py
+++ b/astroid/interpreter/_import/spec.py
@@ -274,7 +274,7 @@ def _cached_set_diff(left, right):
def _precache_zipimporters(path=None):
"""
- For each path that has not been already cached
+ For each path that has not been already cached
in the sys.path_importer_cache, create a new zipimporter
instance and add it into the cache.
Return a dict associating all paths, stored in the cache, to corresponding
diff --git a/astroid/interpreter/objectmodel.py b/astroid/interpreter/objectmodel.py
index 9f106c9a..569867d1 100644
--- a/astroid/interpreter/objectmodel.py
+++ b/astroid/interpreter/objectmodel.py
@@ -798,7 +798,7 @@ class PropertyModel(ObjectModel):
def find_setter(func: objects.Property) -> Optional[astroid.FunctionDef]:
"""
- Given a property, find the corresponding setter function and returns it.
+ Given a property, find the corresponding setter function and returns it.
:param func: property for which the setter has to be found
:return: the setter function or None
diff --git a/doc/release.txt b/doc/release.txt
index 93c9283b..b330c7c9 100644
--- a/doc/release.txt
+++ b/doc/release.txt
@@ -20,7 +20,7 @@ Release Process
https://github.com/PyCQA/astroid
6. Run
-
+
$ git clean -fd && find . -name '*.pyc' -delete
$ rm dist/*
$ python setup.py sdist --formats=gztar bdist_wheel