[Yum] Ooops ;)
seth vidal
skvidal at phy.duke.edu
Mon Nov 4 21:48:22 UTC 2002
On Mon, 2002-11-04 at 16:11, Vladimir Bormotov wrote:
> Hi!
>
> --- clientStuff.py 4 Nov 2002 21:01:13 -0000 1.49
> +++ clientStuff.py 4 Nov 2002 21:05:35 -0000
> @@ -109,13 +109,8 @@
> return (epoch, version, release)
>
> def HeaderInfoNevralLoad(filename, nevral, serverid):
> - info = []
> in_file = open(filename, 'r')
> - while 1:
> - in_line = in_file.readline()
> - if in_line == '':
> - break
> - info.append(in_line)
> + info = in_file.readlines()
> in_file.close()
>
Honestly didn't know readlines existed. I was working from the python
docs on line and well, I had a hard time finding it even when I knew it
existed :)
thanks
-sv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum/attachments/20021104/dd54e560/attachment-0001.pgp
More information about the Yum
mailing list