예제 #1
0
 def _cleanup_data_dir(self):
     if self._data_dir is not None:
         set_restrictive_permissions(self._data_dir)
예제 #2
0
파일: expect.py 프로젝트: TIMMYD3/sagenb
 def _cleanup_data_dir(self):
     if self._data_dir is not None:
         set_restrictive_permissions(self._data_dir)
예제 #3
0
 def _permissions(self, filename):
     f = self._abspath(filename)
     if os.path.exists(f):
         set_restrictive_permissions(f, allow_execute=False)
예제 #4
0
 def _permissions(self, filename):
     f = self._abspath(filename)
     if os.path.exists(f):
         set_restrictive_permissions(f, allow_execute=False)