eric6/HexEdit/HexEditWidget.py

changeset 8217
385f60c94548
parent 8205
4a0f1f896341
child 8218
7c09585bd960
--- a/eric6/HexEdit/HexEditWidget.py	Sat Apr 10 17:54:58 2021 +0200
+++ b/eric6/HexEdit/HexEditWidget.py	Sat Apr 10 18:31:17 2021 +0200
@@ -1532,7 +1532,7 @@
         else:
             if pos < 0:
                 pos = 0
-            pos = pos // 2
+            pos //= 2
             self.__bSelectionInit = pos
             self.__bSelectionBegin = pos
             self.__bSelectionEnd = pos
@@ -1548,7 +1548,7 @@
         """
         if pos < 0:
             pos = 0
-        pos = pos // 2
+        pos //= 2
         if pos >= self.__bSelectionInit:
             self.__bSelectionEnd = pos
             self.__bSelectionBegin = self.__bSelectionInit

eric ide

mercurial