original_docstring: Calculates the format and size of a .dbf record.
docstring: Calculates the format and size of a .dbf record.
docstring_tokens: Calculates the format and size of a . dbf record .
code: def __recordFmt(self):
          """Calculates the format and size of a .dbf record."""
          if self.numRecords is None:
              self.__dbfHeader()
          fmt = ''.join(['%ds' % fieldinfo[2] for fieldinfo in self.fields])
          fmtSize = calcsize(fmt)
          # total size of fields should add up to recordlength from the header
          while fmtSize < self.__recordLength:
              # if not, pad byte until reaches recordlength
              fmt += "x" 
              fmtSize += 1
          return (fmt, fmtSize)
code_tokens: def __recordFmt ( self ) : if self . numRecords is None : self . __dbfHeader ( ) fmt = '' . join ( [ '%ds' % fieldinfo [ 2 ] for fieldinfo in self . fields ] ) fmtSize = calcsize ( fmt ) while fmtSize < self . __recordLength : fmt += "x" fmtSize += 1 return ( fmt , fmtSize )
short_docstring: Calculates the format and size of a .dbf record.
short_docstring_tokens: Calculates the format and size of a . dbf record .
comment: """Calculates the format and size of a .dbf record."""$SEP$# total size of fields should add up to recordlength from the header
  $SEP$# if not, pad byte until reaches recordlength
  