From 870b961a3a6d72d8c7569cbc637c6cc553c1d907 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 19 Apr 2017 15:13:02 +0200 Subject: fix issue #116: Text not available in 3.5.0/3.5.1 If this solves the issue for you, please close it. --- scalarint.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'scalarint.py') diff --git a/scalarint.py b/scalarint.py index 48f1962..11c8e2e 100644 --- a/scalarint.py +++ b/scalarint.py @@ -23,36 +23,36 @@ class ScalarInt(int): def __iadd__(self, a): # type: ignore # type: (Any) -> Any x = type(self)(self + a) - x._width = self._width - x._underscore = self._underscore[:] if self._underscore is not None else None + x._width = self._width # type: ignore + x._underscore = self._underscore[:] if self._underscore is not None else None # type: ignore # NOQA return x def __ifloordiv__(self, a): # type: ignore # type: (Any) -> Any x = type(self)(self // a) - x._width = self._width - x._underscore = self._underscore[:] if self._underscore is not None else None + x._width = self._width # type: ignore + x._underscore = self._underscore[:] if self._underscore is not None else None # type: ignore # NOQA return x def __imul__(self, a): # type: ignore # type: (Any) -> Any x = type(self)(self * a) - x._width = self._width - x._underscore = self._underscore[:] if self._underscore is not None else None + x._width = self._width # type: ignore + x._underscore = self._underscore[:] if self._underscore is not None else None # type: ignore # NOQA return x def __ipow__(self, a): # type: ignore # type: (Any) -> Any x = type(self)(self ** a) - x._width = self._width - x._underscore = self._underscore[:] if self._underscore is not None else None + x._width = self._width # type: ignore + x._underscore = self._underscore[:] if self._underscore is not None else None # type: ignore # NOQA return x def __isub__(self, a): # type: ignore # type: (Any) -> Any x = type(self)(self - a) - x._width = self._width - x._underscore = self._underscore[:] if self._underscore is not None else None + x._width = self._width # type: ignore + x._underscore = self._underscore[:] if self._underscore is not None else None # type: ignore # NOQA return x -- cgit v1.2.1