From 14f1b3e8826ce43b978db93a62d1166055db5394 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:26:05 +0000 Subject: Vendor import of lldb trunk r290819: https://llvm.org/svn/llvm-project/lldb/trunk@290819 --- packages/Python/lldbsuite/support/optional_with.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/Python/lldbsuite/support/optional_with.py') diff --git a/packages/Python/lldbsuite/support/optional_with.py b/packages/Python/lldbsuite/support/optional_with.py index 41342288bc6a8..f91b3c6fdeb62 100644 --- a/packages/Python/lldbsuite/support/optional_with.py +++ b/packages/Python/lldbsuite/support/optional_with.py @@ -2,6 +2,7 @@ # Provides a with-style resource handler for optionally-None resources # ==================================================================== + class optional_with(object): # pylint: disable=too-few-public-methods # This is a wrapper - it is not meant to provide any extra methods. @@ -39,6 +40,7 @@ class optional_with(object): forget the try/finally using optional_with(), since the with syntax can be used. """ + def __init__(self, wrapped_object): self.wrapped_object = wrapped_object -- cgit v1.2.3