From a4e2341acb414895dbc0a9cad884b5111835ef40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriele=20H=C3=B6fler?= Date: Tue, 18 Jun 2019 11:59:14 +0200 Subject: [PATCH] Change if statement whitespaces --- sru/almasru.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sru/almasru.py b/sru/almasru.py index 1107a0b..eb2c0f9 100644 --- a/sru/almasru.py +++ b/sru/almasru.py @@ -113,16 +113,12 @@ class RecordRetriever: num_recs = sru_xml.find("srw:numberOfRecords", self.namespaces) - if ( - num_recs is not None and - num_recs.text == '0' - ): + if (num_recs is not None and + num_recs.text == '0'): raise NoRecord('No matching records found!') - elif ( - num_recs is not None and - num_recs.text > '1' - ): + elif (num_recs is not None and + num_recs.text > '1'): raise MultiRecord('More than one record found' 'while exactly one was expected!') -- GitLab