lazr-config DeprecationWarning due to parser.readfp

Bug #1870199 reported by Hanno Böck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.config
Fix Released
Low
Colin Watson

Bug Description

I'm getting these warnings with an application which uses lazr-config when PYTHONWARNINGS=d is set:

/usr/lib64/python3.6/site-packages/lazr/config/_config.py:264: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.
  parser.readfp(raw_schema, filename)
/usr/lib64/python3.6/site-packages/lazr/config/_config.py:584: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.
  parser.readfp(StringIO(conf_data), conf_filename)

I think they speak for themselve.

Related branches

Colin Watson (cjwatson)
Changed in lazr.config:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :

2.2.3 (2021-01-26)
==================
- Fix tests with zope.interface >= 5.0.0.
- Fix deprecation warning on Python >= 3.2. (LP: #1870199)

Changed in lazr.config:
milestone: none → 2.2.3
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.