1 %extend lldb::SBProgress { 2 #ifdef SWIGPYTHON 3 %pythoncode %{ 4 def __enter__(self): 5 '''No-op for with statement''' 6 pass 7 8 def __exit__(self, exc_type, exc_value, traceback): 9 '''Finalize the progress object''' 10 self.Finalize() 11 %} 12 #endif 13 }