On Thu, 2011-09-29 at 09:14 +0200, Zdeněk Pavlas wrote: > Builtin open() function works only with files. > We should start reading logger.critical messages. > > >>> os.open('.', os.O_RDONLY) > 3 > >>> open('.') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > IOError: [Errno 21] Is a directory: '.'
Amusingly it does work though, because the error is correct: In [1]: open(".") IOError: [Errno 21] Is a directory: '.' In [2]: open("/root") IOError: [Errno 13] Permission denied: '/root' _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel