summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/support/optional_with.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/support/optional_with.py
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/support/optional_with.py')
-rw-r--r--packages/Python/lldbsuite/support/optional_with.py2
1 files changed, 2 insertions, 0 deletions
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