Skip to content

Running code on doc intro page raises warning #266

Closed
@madphysicist

Description

@madphysicist

After fixing the issue with the missing recordset variable, I still get a warning when running in Anaconda Py3 on Red Hat 6.5, python-docx version 0.8.5 installed via pip:

/home/jfoxrabi/miniconda3/lib/python3.5/site-packages/docx/styles/styles.py:54: UserWarning: style lookup by style_id is deprecated. Use style name as key instead.
  warn(msg, UserWarning)

The fact that the intro code is not perfect is not so bad in and of itself, but it would be nice if the warning was issued with stacklevel=2.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions