[Yum-devel] [PATCH 2/2] use xreadlines() not readline()
Ville Skyttä
ville.skytta at iki.fi
Thu Dec 10 23:09:30 UTC 2009
On Thursday 10 December 2009, Seth Vidal wrote:
> ---
> yum/misc.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/yum/misc.py b/yum/misc.py
> index 98e25ff..6c76dd1 100644
> --- a/yum/misc.py
> +++ b/yum/misc.py
> @@ -896,7 +896,7 @@ def get_open_files(pid):
> except (IOError, OSError), e:
> return files
>
> - for line in maps.readline():
> + for line in maps.xreadlines():
Wouldn't simply
for line in maps:
do the same thing? FWIW xreadlines no longer exists in Python 3.
More information about the Yum-devel
mailing list