示例#1
0
文件: fixes.py 项目: Lem97/mne-python
 def __exit__(self, exc_type, exc_value, traceback):
     if hasattr(GzipFile, '__exit__'):
         return GzipFile.__exit__(self, exc_type, exc_value, traceback)
     else:
         return self.close()
示例#2
0
文件: gzip_open.py 项目: zangxc/vispy
 def __exit__(self, exc_type, exc_value, traceback):
     if hasattr(GzipFile, '__exit__'):
         return GzipFile.__exit__(self, exc_type, exc_value, traceback)
     else:
         return self.close()