diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-09 16:04:10 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-09 16:04:10 +0300 |
commit | 512724a74897aa285113fafa71a17475a5278527 (patch) | |
tree | 6d7dcecb204ccde561b88681a934f86e7d7726ed | |
parent | f97ef6e9e89ed2de13b622c1580ef9d14e3fca1f (diff) | |
download | astroid-512724a74897aa285113fafa71a17475a5278527.tar.gz |
Remove trailing whitespace.
-rw-r--r-- | astroid/protocols.py | 4 | ||||
-rw-r--r-- | astroid/tests/unittest_inference.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index 5c9b200..3f1ddef 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -351,7 +351,7 @@ def excepthandler_assigned_stmts(self, node, context=None, asspath=None): assigned = Instance(assigned) yield assigned nodes.ExceptHandler.assigned_stmts = raise_if_nothing_infered(excepthandler_assigned_stmts) - + def _infer_context_manager(self, mgr, context): try: @@ -401,7 +401,7 @@ def with_assigned_stmts(self, node, context=None, asspath=None): for index in asspath: if not hasattr(obj, 'elts'): raise InferenceError - obj = obj.elts[index] + obj = obj.elts[index] yield obj diff --git a/astroid/tests/unittest_inference.py b/astroid/tests/unittest_inference.py index 830eb90..82b2985 100644 --- a/astroid/tests/unittest_inference.py +++ b/astroid/tests/unittest_inference.py @@ -1725,7 +1725,7 @@ class InferenceTest(resources.SysPathSetup, unittest.TestCase): stderr = module['stderr'] inferred = next(stderr.infer()) self.assertIsInstance(inferred, nodes.Const) - self.assertEqual(inferred.value, 2) + self.assertEqual(inferred.value, 2) @unittest.expectedFailure def test_inferring_with_contextlib_contextmanager(self): |