[issue45802] MozillaCookieJar can't read cookies, should support cookies.sqlite
New submission from Akkana Peck : http.cookiejar.MozillaCookieJar only reads from cookies.txt, a format that Mozilla hasn't used in over a decade. It should read the file mozilla actually uses, cookies.sqlite. Here's some code that works to turn cookies.sqlite into cookies.txt in order to read it in to MozillaCookieJar: http://blog.mithis.net/archives/python/90-firefox3-cookies-in-python This was requested in 2008 in issue 2277, around the time Mozilla made the switch. The issue was rejected back then because it was too late to make the final beta for Python 2.6/3.0. I'd like to bring it up again now. I can write a patch (since a real fix should read the cookies into the cookiejar directly, not use StringIO to create an intermediate cookies.txt) if there's any chance it would be accepted. -- components: Library (Lib) messages: 406288 nosy: akkana priority: normal severity: normal status: open title: MozillaCookieJar can't read cookies, should support cookies.sqlite ___ Python tracker <https://bugs.python.org/issue45802> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)
New submission from Akkana Peck akkzi...@shallowsky.com: I was following the steps at http://docs.python.org/library/profile.html to try to profile a pygtk program, but it wasn't working -- I was getting no output at all from either cProfile or profile. The problem turned out to be that I was exiting by calling sys.exit(0), because that's what most pygtk programs I'd seen were doing. Changing that to gtk.main_quit() made profiling work (but it took a long time to track that down). Apparently the same thing happens in pyqt if you call sys.exit(0). -- components: Demos and Tools files: pywin messages: 87504 nosy: akkana severity: normal status: open title: cProfile and profile don't work with pygtk/pyqt and sys.exit(0) type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file13943/pywin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com