Exemple #1
0
 def __init__(self, space):
     W_RawIOBase.__init__(self, space)
     self.fd = -1
     self.readable = False
     self.writable = False
     self.seekable = -1
     self.closefd = True
     self.w_name = None
Exemple #2
0
 def __init__(self, space):
     W_RawIOBase.__init__(self, space)
     self.fd = -1
     self.readable = False
     self.writable = False
     self.seekable = -1
     self.closefd = True
     self.w_name = None
Exemple #3
0
 def __init__(self, space):
     W_RawIOBase.__init__(self, space)
     self.handle = rwin32.INVALID_HANDLE_VALUE
     self.fd = -1
     self.created = 0
     self.readable = False
     self.writable = False
     self.closehandle = False
     self.blksize = 0
     self.buf = ''
Exemple #4
0
 def close_w(self, space):
     try:
         W_RawIOBase.close_w(self, space)
     except OperationError:
         if not self.closefd:
             self.fd = -1
             raise
         self._close(space)
         raise
     if not self.closefd:
         self.fd = -1
         return
     self._close(space)
Exemple #5
0
 def close_w(self, space):
     try:
         W_RawIOBase.close_w(self, space)
     except OperationError:
         if not self.closefd:
             self.fd = -1
             raise
         self._close(space)
         raise
     if not self.closefd:
         self.fd = -1
         return
     self._close(space)
Exemple #6
0
 def close_w(self, space):
     if not self.closefd:
         self.fd = -1
         return
     self._close(space)
     W_RawIOBase.close_w(self, space)
Exemple #7
0
 def close_w(self, space):
     if not self.closefd:
         self.fd = -1
         return
     self._close(space)
     W_RawIOBase.close_w(self, space)