]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Drop use of xreadlines()
authorZack Cerza <zack@redhat.com>
Tue, 19 Jul 2016 23:56:58 +0000 (17:56 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 26 Jul 2016 18:28:08 +0000 (12:28 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/run.py

index 74d68936dedcdbd915f14fb13da32d42d9e1fbd3..c5b1c77fb2bc3cacb0f1c6fb89c5300bb78cc8f6 100644 (file)
@@ -246,9 +246,7 @@ def copy_to_log(f, logger, loglevel=logging.INFO):
     if isinstance(f, ChannelFile):
         f._flags += ChannelFile.FLAG_BINARY
 
-    # i can't seem to get fudge to fake an iterable, so using this old
-    # api for now
-    for line in f.xreadlines():
+    for line in f.readlines():
         line = line.rstrip()
         # Second part of work-around for http://tracker.ceph.com/issues/8313
         try: