Closed Bug 498801 Opened 16 years ago Closed 16 years ago

Improve python compatibility

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 503186

People

(Reporter: t.matsuu, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ja-JP; rv:1.9.2a1pre) Gecko/20090617 Fedora/3.6a1pre-0.a1pre.2009061617.hg_a68245f91aa8.fc11 Minefield/3.6a1pre Build Identifier: When I build xulrunner with python-2.6, I get some Deprecation warning message. Reproducible: Always Actual Results: I get following deprecation warning messages: /usr/bin/python ./prepare_tlds.py ./effective_tld_names.dat > etld_data.inc ./prepare_tlds.py:40: DeprecationWarning: the sets module is deprecated import sets /usr/bin/python ../../../../config/pythonpath.py \ -I../../../../xpcom/idl-parser \ ./qsgen.py \ --idlpath=../../../../dist/idl \ --cachedir=../../../../xpcom/idl-parser \ --header-output dom_quickstubs.h \ --stub-output dom_quickstubs.cpp \ --makedepend-output .deps/dom_qsgen.pp \ \ ./dom_quickstubs.qsconf ../../../../xpcom/idl-parser/../../other-licenses/ply/ply/yacc.py:74: DeprecationWarning: the md5 module is deprecated; use hashlib instead import re, types, sys, cStringIO, md5, os.path ./qsgen.py:135: DeprecationWarning: the sets module is deprecated import sets And extensions/python/xpcom/__init__.py also have the same problem in runtime (sorry I forgot to have the error message). Expected Results: No deprecation warnings. For the warning generated by yacc.py, we can fix by updating ply which is located in other-licenses/ply to the latest one.
Attached patch Possible fix.Splinter Review
I don't know who is the best reviewer. Please let me know. I'm not sure the fix for mozilla-central/extensions/python/xpcom/__init__.py.
Attachment #383602 - Flags: review+
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Attachment #383602 - Flags: review+ → review?
For mozilla-central/extensions/python/xpcom/__init__.py, I submit a new bug 505367.
Component: General → XPCOM
Summary: Improbe python compatibility → Improve python compatibility
Depends on: 505367
Version: unspecified → Trunk
Comment on attachment 383602 [details] [diff] [review] Possible fix. clearing review request from a duplicate bug
Attachment #383602 - Flags: review?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: