I am trying to write a script to convert .lyr files generated with ArcGIS 10.6.1 to ArcGIS Pro 3.0 .lyrx files in the Pro flavored version of ArcPy. In the documentation for the LayerFile class it says that it provides access to .lyr files. When I try this:
lf = arcpy.mp.LayerFile(r'M:\Production\Layerfile\Address\House Numbers.lyr')
It never returns and just hangs. Is the documentation out of date and you can no longer access .lyr files at 3.0? Is there a piece that I'm missing?
Thanks,
Scott