parameters: (self)
return_statement: return size
docstring: dump the file to self.filename.
docstring_summary: dump the file to self.filename.
docstring_tokens: dump the file to self . filename .
function: def _do_grab(self):
          """dump the file to self.filename."""
          if self.append: new_fo = open(self.filename, 'ab')
          else: new_fo = open(self.filename, 'wb')
          bs = 1024*8
          size = 0
  
          block = self.read(bs)
          size = size + len(block)
          while block:
              new_fo.write(block)
              block = self.read(bs)
              size = size + len(block)
  
          new_fo.close()
          try:
              modified_tuple  = self.hdr.getdate_tz('last-modified')
              modified_stamp  = rfc822.mktime_tz(modified_tuple)
              os.utime(self.filename, (modified_stamp, modified_stamp))
          except (TypeError,), e: pass
  
          return size
function_tokens: def _do_grab ( self ) : if self . append : new_fo = open ( self . filename , 'ab' ) else : new_fo = open ( self . filename , 'wb' ) bs = 1024 * 8 size = 0 block = self . read ( bs ) size = size + len ( block ) while block : new_fo . write ( block ) block = self . read ( bs ) size = size + len ( block ) new_fo . close ( ) try : modified_tuple = self . hdr . getdate_tz ( 'last-modified' ) modified_stamp = rfc822 . mktime_tz ( modified_tuple ) os . utime ( self . filename , ( modified_stamp , modified_stamp ) ) except ( TypeError , ) , e : pass return size