From nobody Mon Jul 7 04:41:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521528626097203.62673646122516; Mon, 19 Mar 2018 23:50:26 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B555E5AFC4; Tue, 20 Mar 2018 06:50:24 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 80C30C5DA7; Tue, 20 Mar 2018 06:50:24 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 46ACA4A49B; Tue, 20 Mar 2018 06:50:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2K6o1Vg019618 for ; Tue, 20 Mar 2018 02:50:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id A1868BA92; Tue, 20 Mar 2018 06:50:01 +0000 (UTC) Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96821BA8F for ; Tue, 20 Mar 2018 06:50:01 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7071C047B62 for ; Tue, 20 Mar 2018 06:50:00 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id z73so470445wrb.0 for ; Mon, 19 Mar 2018 23:50:00 -0700 (PDT) Received: from rst.Home ([2a02:c7d:692a:c500:1ebc:73f3:5f60:b131]) by smtp.gmail.com with ESMTPSA id g38sm1923269wra.77.2018.03.19.23.49.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Mar 2018 23:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hM5uw4yFYefOpehfSWNiZ8mmlunczSCsW672JIRaSwM=; b=uUVp21AzGM+KrvC1JR/vxocz89uzuf4l3B2NtGQ6BIwTZDLsylm8P4QnbdH3xOYdOV EAmNdAq9tUooklqEhZKx3cTTPEj/zL0SfgWj+YwnDNXFmJgWjZnPynRdGI46XohfOkO3 G31+aaJohDeO70ClfUZjymoOKix8CzP4HonAQTdTKRkKmEb0bPVwil+UnPvj93xtj076 e5muxj0R30bSyFb0SZJ9dqR9v4QHW4pg3VuOXOqbjIBJz/su+IBvdoCCmHe/hdqho29Q 3S4YXu1NVDuzf6gKL4q9LA0jui2PBc6fwQmrk4xRgZL76z2fFoeyNgLPFfvzuhJ6qu0s 3wbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hM5uw4yFYefOpehfSWNiZ8mmlunczSCsW672JIRaSwM=; b=r/VhRsfD24ylffSPdRAiZijB9v1TvdIzWy29g0axWjhBJpP9e0Rn4vB/UPqDtISf/x fV0fE1BjRWWgeUDqtATfaWR6xCbchGDXbj/383MTbc1/f3MglWv4sII8L3lgqSVi4338 hymEerQABdnXXiJ+eht6lk2vC2X15vpSaRp6+KIvpW6Qb5+VECK87FoFapIy3+v4y7yH pmMRv5bT99itHY75BDtnqOtQBTouDa/vg3AtJRiPgj4U/7s9Iu0aSef4MIpUlxznapYm chOQ04MW8KmhgBxkRi89QAEpxWi52kQnKpuSHeaeqSsqDha0mLPDZKXqQi23fnXsgufr Qctg== X-Gm-Message-State: AElRT7HbYUxcjMt1BS9i90fxYfBG4rz1DHfFGV7m5hs7w96vUALzSoBQ KdW8AbrheFu9E8oRIdBVJexfB0lN X-Google-Smtp-Source: AG47ELthAHnyWz1Klf6Qg3wsFOBr9xUtHWggARreZSXEUr8IrgCry+pnRobbZl6DdgjqZ48e+nqoAw== X-Received: by 10.223.152.138 with SMTP id w10mr589653wrb.34.1521528599225; Mon, 19 Mar 2018 23:49:59 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Tue, 20 Mar 2018 06:49:08 +0000 Message-Id: <20180320064908.17723-26-rstoyanov1@gmail.com> In-Reply-To: <20180320064908.17723-1-rstoyanov1@gmail.com> References: <20180320064908.17723-1-rstoyanov1@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 20 Mar 2018 06:50:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 20 Mar 2018 06:50:00 +0000 (UTC) for IP:'209.85.128.196' DOMAIN:'mail-wr0-f196.google.com' HELO:'mail-wr0-f196.google.com' FROM:'rstoyanov1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.139 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.196 mail-wr0-f196.google.com 209.85.128.196 mail-wr0-f196.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCHv2 25/25] apibuild: Simplify getline() X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 20 Mar 2018 06:50:25 +0000 (UTC) X-ZohoMail-DKIM: fail (Computed bodyhash is different from the expected one) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Radostin Stoyanov --- docs/apibuild.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/apibuild.py b/docs/apibuild.py index 1f9c8f12c..5e218a9ad 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -432,21 +432,17 @@ class CLexer: line =3D self.input.readline() if not line: return None - self.lineno =3D self.lineno + 1 - line =3D line.lstrip() - line =3D line.rstrip() + self.lineno +=3D 1 + line =3D line.strip() if line =3D=3D '': continue while line[-1] =3D=3D '\\': line =3D line[:-1] - n =3D self.input.readline() - self.lineno =3D self.lineno + 1 - n =3D n.lstrip() - n =3D n.rstrip() + n =3D self.input.readline().strip() + self.lineno +=3D 1 if not n: break - else: - line =3D line + n + line +=3D n return line =20 def getlineno(self): --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list