[Yum] Ooops ;)

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

 



--=-RE3OkSXr/EXmcCnLN6iz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2002-11-04 at 16:11, Vladimir Bormotov wrote:
>                 Hi!
>                =20
> --- 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)
> =20
>  def HeaderInfoNevralLoad(filename, nevral, serverid):
> -    info =3D []
>      in_file =3D open(filename, 'r')
> -    while 1:
> -        in_line =3D in_file.readline()
> -        if in_line =3D=3D '':
> -            break
> -        info.append(in_line)
> +    info =3D in_file.readlines()
>      in_file.close()
> =20

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


--=-RE3OkSXr/EXmcCnLN6iz
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA9xusm1Aj3x2mIbMcRAp6vAJ9+fTNCnYpYP8z3Jd+3HKcI1uBOdACfVmBM
5i8V0vFQFkRIzcktoaL2G2A=
=V29G
-----END PGP SIGNATURE-----

--=-RE3OkSXr/EXmcCnLN6iz--



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux