DeprecationWarning with ws.iter_rows

Issue #727 resolved
Mike Trim
created an issue

Using version 2.4.1, calling ws.iter_rows gives the following DeprecationWarning: "Call to deprecated function or class get_squared_range ( Use ws.iter_rows() or ws.iter_cols() depending whether you want rows or columns returned. )."

Clearly this warning doesn't make much sense as I am calling ws.iter_rows, which is what calls get_squared_range (on line 510 of worksheet.py).

Comments (4)

  1. Fred Carle

    has this fix been merged? because I'm also getting this error with 2.4.1

    openpyxl/worksheet/worksheet.py:583: DeprecationWarning: Call to deprecated function or class get_squared_range (
        Use ws.iter_rows() or ws.iter_cols() depending whether you
        want rows or columns returned.
        ).
      Use ws.iter_rows() or ws.iter_cols() depending whether you
    
  2. Log in to comment