]> Savannah Git Hosting - gnulib.git/commitdiff
config: __enter__ and __exit__ methods
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 22 Oct 2017 20:49:00 +0000 (23:49 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 22 Oct 2017 20:49:00 +0000 (23:49 +0300)
pygnulib/config.py

index b4e393c15e38442c1fbb43be80e7067c673b0187..7dba24f2462efa1d376e8eba11c777b686373fa5 100644 (file)
@@ -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"""