Exemple #1
0
 def method_truncate(self, space, length):
     self.ensure_not_closed(space)
     try:
         ftruncate(self.fd, length)
     except OSError as e:
         raise error_for_oserror(space, e)
     return space.newint(0)
 def method_truncate(self, space, length):
     self.ensure_not_closed(space)
     try:
         ftruncate(self.fd, length)
     except OSError as e:
         raise error_for_oserror(space, e)
     return space.newint(0)
Exemple #3
0
 def method_truncate(self, space, length):
     self.ensure_not_closed(space)
     ftruncate(self.fd, length)
     return space.newint(0)
Exemple #4
0
 def method_truncate(self, space, length):
     self.ensure_not_closed(space)
     ftruncate(self.fd, length)
     return space.newint(0)