Re: [master 1/6] analog: handle a config file we can't open.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/20/2010 08:17 PM, Brian C. Lane wrote:

I really dislike the 'print>>  sys.sterr', reminds me of C++ I suppose.
Also, it is going away in Python 3.0 (which we should at least be
thinking about).

I'd rather see us start doing this:

from __future__ import print_function

print("Can't write into file %s" % options.output, file=sys.stderr)

Docs are here:

http://docs.python.org/library/functions.html#print


You're right, the future import is less evil than the print statement (even though both can me be converted to python3 according to msivak).

I'll fix this.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux