a pastebin project

Miscellany

  1.     def _find_modes(self):
  2.         """Determine the appropriate modes for files and directories."""
  3.         try:
  4.             st = self._transport.stat('.')
  5.         except errors.TransportNotPossible:
  6.             self._dir_mode = 0755
  7.             self._file_mode = 0644
  8.         else:
  9.             self._dir_mode = st.st_mode & 07777
  10.             # Remove the sticky and execute bits for files
  11.             self._file_mode = self._dir_mode & ~07111
  12.         if not self._set_dir_mode:
  13.             self._dir_mode = None
  14.         if not self._set_file_mode:
  15.             self._file_mode = None

advertising

Create a Paste

Please enter your new post below (or upload a file instead):





Please note that information posted here will not expire by default. If you want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords.

fantasy-obligation
fantasy-obligation