jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/460496 )
Change subject: Set correct variables in WbQuantity.__init__ ......................................................................
Set correct variables in WbQuantity.__init__
The prior assignment was redundant and would crash on lines 816-817.
Change-Id: If3b080c50445dec928f80f0ea4f661b4cdc89da5 --- M pywikibot/__init__.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index 2d66ece..5ba23cc 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -806,7 +806,7 @@ self.upperBound = self.lowerBound = None else: if error is None: - self.upperBound = self.lowerBound = Decimal(0) + upperError = lowerError = Decimal(0) elif isinstance(error, tuple): upperError = self._todecimal(error[0]) lowerError = self._todecimal(error[1])
pywikibot-commits@lists.wikimedia.org