This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: compiler: -3 warnings
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, srittau
Priority: normal Keywords: patch

Created on 2008-12-07 17:35 by srittau, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
compiler.diff srittau, 2008-12-07 17:35 patch
Messages (4)
msg77238 - (view) Author: Sebastian Rittau (srittau) * Date: 2008-12-07 17:35
The attached patch replaces all instances of "x.has_key(k)" method calls
by "k in x". It also replaces one call to parser.ast2tuple by
parser.st2tuple. This removes deprecation warnings when running in -3 mode.
msg77271 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-07 22:32
Since the compiler package is removed in Python 3, I think it's okay for
it to raise py3k warnings -- in fact, it should raise a quite prominent
one when first imported that it's going to be removed.
msg77276 - (view) Author: Sebastian Rittau (srittau) * Date: 2008-12-07 23:19
I'd like to see this fixed, just to decrease the amount of warning spam
I get when testing my own packages. It seems that one of my dependecies
that I have no control over is pulling this in. Adding a warning when
this module is important seems like a good idea, though.
msg77854 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-15 08:59
OK, since it doesn't do any damage I've applied your patch in r67787.
History
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48828
2008-12-15 08:59:18georg.brandlsetstatus: pending -> closed
resolution: wont fix -> fixed
messages: + msg77854
2008-12-07 23:19:56srittausetmessages: + msg77276
2008-12-07 22:32:38georg.brandlsetstatus: open -> pending
resolution: wont fix
messages: + msg77271
nosy: + georg.brandl
2008-12-07 17:35:47srittaucreate