RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ipaddr.py RefactoringTool: Files that were modified: RefactoringTool: ipaddr.py ./ install/ install/slack-desc usr/ usr/doc/ usr/doc/ipaddr-py-2.1.10/ usr/doc/ipaddr-py-2.1.10/COPYING usr/doc/ipaddr-py-2.1.10/PKG-INFO usr/doc/ipaddr-py-2.1.10/README usr/doc/ipaddr-py-2.1.10/RELEASENOTES usr/doc/ipaddr-py-2.1.10/ipaddr-py.SlackBuild usr/lib/ usr/lib/python2.7/ usr/lib/python2.7/site-packages/ usr/lib/python2.7/site-packages/ipaddr-2.1.10-py2.7.egg-info usr/lib/python2.7/site-packages/ipaddr.py usr/lib/python2.7/site-packages/ipaddr.pyc usr/lib/python3.9/ usr/lib/python3.9/site-packages/ usr/lib/python3.9/site-packages/__pycache__/ usr/lib/python3.9/site-packages/__pycache__/ipaddr.cpython-39.pyc usr/lib/python3.9/site-packages/ipaddr-2.1.10-py3.9.egg-info usr/lib/python3.9/site-packages/ipaddr.py ip_int >>= 8 return '.'.join(octets) @@ -1192,7 +1192,7 @@ _BaseV4.__init__(self, address) # Efficient constructor from integer. - if isinstance(address, (int, long)): + if isinstance(address, int): self._ip = address if address < 0 or address > self._ALL_ONES: raise AddressValueError(address) @@ -1274,7 +1274,7 @@ _BaseV4.__init__(self, address) # Constructing from an integer or packed bytes. - if isinstance(address, (int, long, Bytes)): + if isinstance(address, (int, Bytes)): self.ip = IPv4Address(address) self._ip = self.ip._ip self._prefixlen = self._max_prefixlen @@ -1428,7 +1428,7 @@ # This indicates that a run of zeroes has been skipped. try: skip_index, = ( - [i for i in xrange(1, len(parts) - 1) if not parts[i]] or + [i for i in range(1, len(parts) - 1) if not parts[i]] or [None]) except ValueError: # Can't have more than one '::' @@ -1462,12 +1462,12 @@ try: # Now, parse the hextets into a 128-bit integer. - ip_int = 0L - for i in xrange(parts_hi): + ip_int = 0 + for i in range(parts_hi): ip_int <<= 16 ip_int |= self._parse_hextet(parts[i]) ip_int <<= 16 * parts_skipped - for i in xrange(-parts_lo, 0): + for i in range(-parts_lo, 0): ip_int <<= 16 ip_int |= self._parse_hextet(parts[i]) return ip_int @@ -1586,7 +1586,7 @@ ip_int = self._ip_int_from_string(ip_str) parts = [] - for i in xrange(self._HEXTET_COUNT): + for i in range(self._HEXTET_COUNT): parts.append('%04x' % (ip_int & 0xFFFF)) ip_int >>= 16 parts.reverse() @@ -1766,7 +1766,7 @@ _BaseV6.__init__(self, address) # Efficient constructor from integer. - if isinstance(address, (int, long)): + if isinstance(address, int): self._ip = address if address < 0 or address > self._ALL_ONES: raise AddressValueError(address) @@ -1841,7 +1841,7 @@ _BaseV6.__init__(self, address) # Constructing from an integer or packed bytes. - if isinstance(address, (int, long, Bytes)): + if isinstance(address, (int, Bytes)): self.ip = IPv6Address(address) self._ip = self.ip._ip self._prefixlen = self._max_prefixlen running install running build running build_py creating build creating build/lib copying ipaddr.py -> build/lib running install_lib creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python2.7 creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python2.7/site-packages copying build/lib/ipaddr.py -> /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python2.7/site-packages byte-compiling /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python2.7/site-packages/ipaddr.py to ipaddr.pyc running install_egg_info Writing /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python2.7/site-packages/ipaddr-2.1.10-py2.7.egg-info running install running build running build_py running install_lib creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python3.9 creating /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python3.9/site-packages copying build/lib/ipaddr.py -> /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python3.9/site-packages byte-compiling /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python3.9/site-packages/ipaddr.py to ipaddr.cpython-39.pyc running install_egg_info Writing /usr/src/slapt-src/python/ipaddr-py/package-ipaddr-py/usr/lib/python3.9/site-packages/ipaddr-2.1.10-py3.9.egg-info Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src/python/ipaddr-py/ipaddr-py-2.1.10-i586-1salix15.0.txz Slackware package /usr/src/slapt-src/python/ipaddr-py/ipaddr-py-2.1.10-i586-1salix15.0.txz created. Installing package ipaddr-py-2.1.10-i586-1salix15.0... | ipaddr-py (IPv4/IPv6 manipulation library in Python) | | ipaddr-py is an IPv4/IPv6 manipulation library in Python. | This library is used to create/poke/manipulate IPv4 and | IPv6 addresses and prefixes | | Homepage: https://code.google.com/p/ipaddr-py/ | | | | | | WARNING: File already exist usr/lib/python3.9/site-packages/__pycache__/ipaddr.cpython-39.pyc (it will be replaced) WARNING: File already exist usr/lib/python3.9/site-packages/ipaddr.py (it will be replaced)