From 0774567dd9b8265330946bf02e95335c80af60e6 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Tue, 7 Sep 2021 22:34:40 +0530 Subject: [PATCH] Updated range import by six --- src/qidenticon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qidenticon.py b/src/qidenticon.py index da306095..30b61b9b 100644 --- a/src/qidenticon.py +++ b/src/qidenticon.py @@ -40,7 +40,8 @@ Returns an instance of :class:`QPixmap` which have generated identicon image. ``size`` specifies `patch size`. Generated image size is 3 * ``size``. """ -import six.moves +from six.moves import range + try: from PyQt5 import QtCore, QtGui except ImportError: @@ -94,14 +95,14 @@ class IdenticonRendererBase(object): # side patch kwds['foreColor'] = foreColor kwds['patch_type'] = side[0] - for i in six.moves.range(4): + for i in range(4): pos = [(1, 0), (2, 1), (1, 2), (0, 1)][i] image = self.drawPatchQt(pos, side[2] + 1 + i, side[1], **kwds) # corner patch kwds['foreColor'] = secondColor kwds['patch_type'] = corner[0] - for i in six.moves.range(4): + for i in range(4): pos = [(0, 0), (2, 0), (2, 2), (0, 2)][i] image = self.drawPatchQt(pos, corner[2] + 1 + i, corner[1], **kwds)