def print_layers(fn):
    ds = ogr.Open(fn, 0)
    if ds is None:
        raise OSError('Could not open {}'.format(fn))
    for i in range(ds.GetLayerCount()):
        lyr = ds.GetLayer(i)
        print('{0}: {1} ({2})'.format(i, lyr.GetName(),
                                      _geom_constants[lyr.GetGeomType()]))
1. Update code to pick up changes to this file.
dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/print_layers--crossover with--dataset/ETHPy150Open lmorchard/badg.us/scripts/update/update.py/pre_update