jenkins-bot merged this change.
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(-)
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])
To view, visit change 460496. To unsubscribe, or for help writing mail filters, visit settings.