From dda7e30e7b07379dd40b72c75368b8a0a9397e44 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sun, 14 Aug 2016 11:22:36 +0100 Subject: [PATCH] use six's xrange in util --- steam/util/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/steam/util/__init__.py b/steam/util/__init__.py index 105f74f..b843109 100644 --- a/steam/util/__init__.py +++ b/steam/util/__init__.py @@ -4,11 +4,7 @@ import weakref import struct import socket import sys - -if sys.version_info < (3,): - _range = xrange -else: - _range = range +from six.moves import xrange as _range def ip_from_int(ip): """Convert IP to :py:class:`int`