Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282859 - dev-lang/python:2.6: Deprecation warnings in imaplib
Summary: dev-lang/python:2.6: Deprecation warnings in imaplib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue7619
Whiteboard: 2.6.5
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 03:04 UTC by Robert Trace
Modified: 2010-03-21 11:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Convert os.popen calls to subprocess.Popen calls. Backported from python 3.0 (imaplib.patch,1.38 KB, patch)
2009-08-27 03:05 UTC, Robert Trace
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Trace 2009-08-27 03:04:39 UTC
Python 2.6's imaplib continues to use os.popen and in 2.6 this results in a noisy deprecation warning.  This is fixed upstream in python 3.0, but the 2.6 line still seems "broken".

I've backported the changes in 3.0 to 2.6 and I'll attach the patch here.

Reproducible: Always

Steps to Reproduce:
1. Use imaplib (specifically IMAP4_stream) under python 2.6

Actual Results:  
Noisy deprecation warnings from python.

Expected Results:  
No warnings. :-)
Comment 1 Robert Trace 2009-08-27 03:05:33 UTC
Created attachment 202370 [details, diff]
Convert os.popen calls to subprocess.Popen calls.  Backported from python 3.0
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-17 18:09:28 UTC
Please report this bug to upstream. Maybe they will fix it in 2.6.5 or 2.7.
http://bugs.python.org/
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-01 22:23:16 UTC
I've filed upstream bug http://bugs.python.org/issue7619.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-02 09:05:56 UTC
This has been fixed in python trunk; I've asked about backporting it to 2.6.x.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-21 11:39:56 UTC
Fixed in dev-lang/python-2.6.5.