Github user aviyoop commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/207#discussion_r153195877
  
    --- Diff: aria/parser/reading/reader.py ---
    @@ -28,16 +28,9 @@ def __init__(self, context, location, loader):
     
         def load(self):
             with OpenClose(self.loader) as loader:
    --- End diff --
    
    can't you just add the `__enter__` and `__exit__` methods to the `Loader` 
class?
    And if you want several classes to use this logic, just make a mixin class 
and inherit from it?


---

Reply via email to