From 95b8337f325ae07184ecff2f2e156ca5e076b393 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 22 Oct 2017 23:49:00 +0300 Subject: [PATCH] config: __enter__ and __exit__ methods --- pygnulib/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pygnulib/config.py b/pygnulib/config.py index b4e393c15e..7dba24f246 100644 --- a/pygnulib/config.py +++ b/pygnulib/config.py @@ -103,6 +103,14 @@ class Base: return iter(self.__table) + def __enter__(self): + return self + + + def __exit__(self, exctype, excval, exctrace): + pass + + @property def root(self): """target directory""" -- 2.39.5