Mercurial > gnulib
changeset 39062:6f57acb28286
config: __enter__ and __exit__ methods
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Sun, 22 Oct 2017 23:49:00 +0300 |
parents | 7bcbc023e2da |
children | b70f2027b9cf |
files | pygnulib/config.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/config.py Sun Oct 22 23:46:08 2017 +0300 +++ b/pygnulib/config.py Sun Oct 22 23:49:00 2017 +0300 @@ -103,6 +103,14 @@ return iter(self.__table) + def __enter__(self): + return self + + + def __exit__(self, exctype, excval, exctrace): + pass + + @property def root(self): """target directory"""