I have been trying to list all the field names of a shapefile but it is showing 'expected an indented block'. What should I do?
import arcpy
fieldList = arcpy.ListFields("C:\Users\Mridul\Documents\GIS\Spring 2011\650\streets_dev.shp")
for field in fieldList:
print field.name + " is a type of " + field.type + " with a legth of " + field.length
rows = arcpy.UpdateCursor("C:\Users\Mridul\Documents\GIS\Spring 2011\650\streets_dev.shp", "SHAPE_len>400")
cnt = 0
for row in rows:
row.STREETNAME = "OLD " + row.STREETNAME
rows.updateRow(row)
cnt += 1
print cnt
del row
del rows

