From: Dmitry Selyutin Date: Sun, 22 Oct 2017 20:49:00 +0000 (+0300) Subject: config: __enter__ and __exit__ methods X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95b8337f325ae07184ecff2f2e156ca5e076b393;p=thirdparty%2Fgnulib.git config: __enter__ and __exit__ methods --- 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"""