diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-11-23 15:15:41 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-11-23 15:15:41 +0100 |
commit | 6b47843794b94034e6fa60a8183e8488992bdcea (patch) | |
tree | 3ab083bcba77158d4b2217faa106b9c64779753b /checkers/utils.py | |
parent | 9314cd2b73f75c53ec7fea88b61b18e121cc10fa (diff) | |
parent | 43e8f817074a0e2e865f4a061ba3956313ebe8e5 (diff) | |
download | pylint-6b47843794b94034e6fa60a8183e8488992bdcea.tar.gz |
merge
Diffstat (limited to 'checkers/utils.py')
-rw-r--r-- | checkers/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checkers/utils.py b/checkers/utils.py index 51bca4a..ba371a5 100644 --- a/checkers/utils.py +++ b/checkers/utils.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -"""some functions that may be usefull for various checkers +"""some functions that may be useful for various checkers """ from logilab import astng @@ -29,9 +29,9 @@ except AttributeError: FOR_NODE_TYPES = (astng.For, astng.Comprehension) def safe_infer(node): - """return the infered value for the given node. + """return the inferred value for the given node. Return None if inference failed or if there is some ambiguity (more than - one node has been infered) + one node has been inferred) """ try: inferit = node.infer() @@ -40,7 +40,7 @@ def safe_infer(node): return try: inferit.next() - return # None if there is ambiguity on the infered node + return # None if there is ambiguity on the inferred node except StopIteration: return value |