[PyKDE] Bug? pyuic outputs on STDOUT non-code
Jonathan Gardner
jgardner at jonathangardner.net
Thu Jul 3 18:07:00 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Apparently, pyuic in PyQt 3.6 outputs some messages like:
"Extracting blahblah()"
to STDOUT when it is running. This is very different from earlier versions.
This makes it impossible to redirect the output of pyuic to create the code
file. The -o option becomes mandatory.
Here is a patch to fix it by redirecting the message to STDERR:
diff -uNr PyQt-x11-gpl-snapshot-20030630/pyuic3/form.cpp
PyQt.new/pyuic3/form.cpp
- --- PyQt-x11-gpl-snapshot-20030630/pyuic3/form.cpp 2003-06-30
17:04:52.000000000 -0700
+++ PyQt.new/pyuic3/form.cpp 2003-07-03 09:02:20.000000000 -0700
@@ -203,7 +203,7 @@
if (pos > -1)
{
- - cout << "Extracting " << rx.cap(1) << endl;
+ cerr << "Extracting " << rx.cap(1) << endl;
if (inFunction)
functionImpls.insert(Parser::cleanArgs(functionName),functionText);
- --
Jonathan Gardner <jgardner at jonathangardner.net>
(was jgardn at alumni.washington.edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/BFRaWgwF3QvpWNwRAskdAKC+ldVuRtplGIi7TUDvZylaMBzPnwCg6bOx
GY1bjBiZ8r8jCCMCIHqfi64=
=JY1W
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list