{"nwo":"CartoDB\/cartodb","sha":"46b91228a01123976363f55a5e1d712a600785a6","path":"lib\/importer\/misc\/dbfUtils.py","language":"python","identifier":"dbfreader","parameters":"(f)","argument_list":"","return_statement":"","docstring":"Returns an iterator over records in a Xbase DBF file.\n\n The first row returned contains the field names.\n The second row contains field specs: (type, size, decimal places).\n Subsequent rows contain the data records.\n If a record is marked as deleted, it is skipped.\n\n File should be opened for binary reads.","docstring_summary":"Returns an iterator over records in a Xbase DBF file.","docstring_tokens":["Returns","an","iterator","over","records","in","a","Xbase","DBF","file","."],"function":"def dbfreader(f):\n \"\"\"Returns an iterator over records in a Xbase DBF file.\n\n The first row returned contains the field names.\n The second row contains field specs: (type, size, decimal places).\n Subsequent rows contain the data records.\n If a record is marked as deleted, it is skipped.\n\n File should be opened for binary reads.\n\n \"\"\"\n # See DBF format spec at:\n # http:\/\/www.pgts.com.au\/download\/public\/xbase.htm#DBF_STRUCT\n\n numrec, lenheader = struct.unpack('