summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-09-26 18:13:06 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-09-26 18:13:06 +0300
commit2b0f4904eeb76c3c3ff1d7d9640eadab4839b11d (patch)
tree1ec1ed056e314ce97d4b4355c95f64aa6a06d850 /astroid
parent9362707c3279c13480f16d5f90758c1eafd05bdf (diff)
downloadastroid-2b0f4904eeb76c3c3ff1d7d9640eadab4839b11d.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'astroid')
-rw-r--r--astroid/objects.py4
-rw-r--r--astroid/tests/unittest_inference.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index 5318f43..b11e3bc 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -39,7 +39,7 @@ an AST node and where to use an inference object:
on its own. This is the case for slices for instance, e.g "[2:3:4]".
In this case, trying to write "2:3:4" on its own will fail.
The respective builtin (slice) returns a custom object when inferring
- and not an AST node per se.
+ and not an AST node per se.
"""
@@ -78,7 +78,7 @@ class Slice(node_classes.Slice):
@decorators.cachedproperty
def _proxied(self):
builtins = MANAGER.astroid_cache[BUILTINS]
- return builtins.getattr('slice')[0]
+ return builtins.getattr('slice')[0]
def pytype(self):
return '%s.slice' % BUILTINS
diff --git a/astroid/tests/unittest_inference.py b/astroid/tests/unittest_inference.py
index 0cef920..75eed79 100644
--- a/astroid/tests/unittest_inference.py
+++ b/astroid/tests/unittest_inference.py
@@ -3586,7 +3586,7 @@ class SliceTest(unittest.TestCase):
]
for code, values in ast_nodes:
lower, upper, step = values
- node = test_utils.extract_node(code)
+ node = test_utils.extract_node(code)
inferred = next(node.infer())
self.assertIsInstance(inferred, objects.Slice)
lower_value = next(inferred.igetattr('start'))