<86>Aug 1 10:57:06 userdel[3802360]: delete user 'rooter' <86>Aug 1 10:57:06 userdel[3802360]: removed group 'rooter' owned by 'rooter' <86>Aug 1 10:57:06 userdel[3802360]: removed shadow group 'rooter' owned by 'rooter' <86>Aug 1 10:57:06 groupadd[3802377]: group added to /etc/group: name=rooter, GID=663 <86>Aug 1 10:57:06 groupadd[3802377]: group added to /etc/gshadow: name=rooter <86>Aug 1 10:57:06 groupadd[3802377]: new group: name=rooter, GID=663 <86>Aug 1 10:57:06 useradd[3802391]: new user: name=rooter, UID=663, GID=663, home=/root, shell=/bin/bash <86>Aug 1 10:57:06 userdel[3802412]: delete user 'builder' <86>Aug 1 10:57:06 userdel[3802412]: removed group 'builder' owned by 'builder' <86>Aug 1 10:57:06 userdel[3802412]: removed shadow group 'builder' owned by 'builder' <86>Aug 1 10:57:06 groupadd[3802429]: group added to /etc/group: name=builder, GID=664 <86>Aug 1 10:57:06 groupadd[3802429]: group added to /etc/gshadow: name=builder <86>Aug 1 10:57:06 groupadd[3802429]: new group: name=builder, GID=664 <86>Aug 1 10:57:06 useradd[3802443]: new user: name=builder, UID=664, GID=664, home=/usr/src, shell=/bin/bash <13>Aug 1 10:57:09 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Aug 1 10:57:09 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>Aug 1 10:57:09 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 10:57:09 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Aug 1 10:57:09 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 10:57:09 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 10:57:09 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Aug 1 10:57:09 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Aug 1 10:57:09 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 10:57:09 rpmi: libcrypto1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 10:57:09 rpmi: libssl1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 10:57:09 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:57:09 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:57:10 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:57:10 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Aug 1 10:57:10 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Aug 1 10:57:14 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:57:14 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:14 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 10:57:14 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 10:57:14 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:57:14 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Aug 1 10:57:14 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Aug 1 10:57:14 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Aug 1 10:57:14 groupadd[3828408]: group added to /etc/group: name=_keytab, GID=499 <86>Aug 1 10:57:14 groupadd[3828408]: group added to /etc/gshadow: name=_keytab <86>Aug 1 10:57:14 groupadd[3828408]: new group: name=_keytab, GID=499 <13>Aug 1 10:57:14 rpmi: libkrb5-1.17.2-alt2 p9+280683.100.2.1 1627489307 installed <13>Aug 1 10:57:14 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Aug 1 10:57:14 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Aug 1 10:57:14 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:14 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:14 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:14 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:57:15 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Aug 1 10:57:15 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:57:15 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:57:16 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-txredisapi-1.2-alt1.git20140728.1.2.nosrc.rpm (w1.gzdio) Installing python-module-txredisapi-1.2-alt1.git20140728.1.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.56850 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf txredisapi-1.2 + echo 'Source #0 (txredisapi-1.2.tar):' Source #0 (txredisapi-1.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/txredisapi-1.2.tar + cd txredisapi-1.2 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/txredisapi.py --- ../python3/txredisapi.py (original) +++ ../python3/txredisapi.py (refactored) @@ -83,7 +83,7 @@ oldapi = bool(args) try: iter(keys) - if isinstance(keys, (str, unicode)): + if isinstance(keys, str): keys = [keys] if not oldapi: return keys @@ -231,7 +231,7 @@ response = yield self.auth(self.factory.password) if isinstance(response, ResponseError): raise response - except Exception, e: + except Exception as e: self.factory.continueTrying = False self.transport.loseConnection() @@ -246,7 +246,7 @@ response = yield self.select(self.factory.dbid) if isinstance(response, ResponseError): raise response - except Exception, e: + except Exception as e: self.factory.continueTrying = False self.transport.loseConnection() @@ -285,7 +285,7 @@ if token == "$": # bulk data try: - self.bulk_length = long(data) + self.bulk_length = int(data) except ValueError: self.replyReceived(InvalidResponse("Cannot convert data " "'%s' to integer" % data)) @@ -299,7 +299,7 @@ elif token == "*": # multi-bulk data try: - n = long(data) + n = int(data) except (TypeError, ValueError): self.multi_bulk = MultiBulkStorage() self.replyReceived(InvalidResponse("Cannot convert " @@ -457,12 +457,12 @@ for s in args: if isinstance(s, str): cmd = s - elif isinstance(s, unicode): + elif isinstance(s, str): if self.charset is None: raise InvalidData("Encoding charset was not specified") try: cmd = s.encode(self.charset, self.errors) - except UnicodeEncodeError, e: + except UnicodeEncodeError as e: raise InvalidData( "Error encoding unicode value '%s': %s" % (repr(s), e)) @@ -699,7 +699,7 @@ HMSET replaces old values with new values. """ items = [] - for pair in mapping.iteritems(): + for pair in mapping.items(): items.extend(pair) return self.execute_command("MSET", *items) @@ -709,7 +709,7 @@ operation if none of the keys already exist """ items = [] - for pair in mapping.iteritems(): + for pair in mapping.items(): items.extend(pair) return self.execute_command("MSETNX", *items) @@ -721,7 +721,7 @@ srclen = len(srckeys) if srclen == 0: return defer.fail(RedisError("no ``srckeys`` specified")) - if isinstance(operation, (str, unicode)): + if isinstance(operation, str): operation = operation.upper() elif operation is operator.and_ or operation is operator.__and__: operation = 'AND' @@ -871,7 +871,7 @@ """ Blocking LPOP """ - if isinstance(keys, (str, unicode)): + if isinstance(keys, str): keys = [keys] else: keys = list(keys) @@ -883,7 +883,7 @@ """ Blocking RPOP """ - if isinstance(keys, (str, unicode)): + if isinstance(keys, str): keys = [keys] else: keys = list(keys) @@ -1068,7 +1068,7 @@ def _handle_withscores(self, r): if isinstance(r, list): # Return a list tuples of form (value, score) - return zip(r[::2], r[1::2]) + return list(zip(r[::2], r[1::2])) return r def _zrange(self, key, start, end, withscores, reverse): @@ -1189,7 +1189,7 @@ def _zaggregate(self, command, dstkey, keys, aggregate): pieces = [command, dstkey, len(keys)] if isinstance(keys, dict): - keys, weights = zip(*keys.items()) + keys, weights = list(zip(*list(keys.items()))) else: weights = None @@ -1207,7 +1207,7 @@ aggregate = 'SUM' else: err_flag = True - if isinstance(aggregate, (str, unicode)): + if isinstance(aggregate, str): aggregate_u = aggregate.upper() if aggregate_u in ('MIN', 'MAX', 'SUM'): aggregate = aggregate_u @@ -1249,7 +1249,7 @@ Set the hash fields to their respective values. """ items = [] - for pair in mapping.iteritems(): + for pair in mapping.items(): items.extend(pair) return self.execute_command("HMSET", key, *items) @@ -1275,7 +1275,7 @@ """ Remove the specified field or fields from a hash """ - if isinstance(fields, (str, unicode)): + if isinstance(fields, str): fields = [fields] else: fields = list(fields) @@ -1303,7 +1303,7 @@ """ Return all the fields and associated values in a hash. """ - f = lambda d: dict(zip(d[::2], d[1::2])) + f = lambda d: dict(list(zip(d[::2], d[1::2]))) return self.execute_command("HGETALL", key, post_proc=f) # Sorting @@ -1344,7 +1344,7 @@ self.inTransaction = True self.unwatch_cc = self._clear_txstate self.commit_cc = lambda: () - if isinstance(keys, (str, unicode)): + if isinstance(keys, str): keys = [keys] d = self.execute_command("WATCH", *keys).addCallback(self._tx_started) return d @@ -1476,10 +1476,10 @@ def _process_info(self, r): keypairs = [x for x in r.split('\r\n') if - u':' in x and not x.startswith(u'#')] + ':' in x and not x.startswith('#')] d = {} for kv in keypairs: - k, v = kv.split(u':') + k, v = kv.split(':') d[k] = v return d @@ -1523,7 +1523,7 @@ def _evalsha_errback(self, err, script_hash): if err.check(ResponseError): - if err.value.args[0].startswith(u'NOSCRIPT'): + if err.value.args[0].startswith('NOSCRIPT'): if script_hash in self.script_hashes: self.script_hashes.remove(script_hash) raise ScriptDoesNotExist("No script matching hash: %s found" % @@ -1564,7 +1564,7 @@ def _handle_script_kill(self, r): if isinstance(r, Failure): if r.check(ResponseError): - if r.value.args[0].startswith(u'NOTBUSY'): + if r.value.args[0].startswith('NOTBUSY'): raise NoScriptRunning("No script running") else: pass @@ -1603,10 +1603,10 @@ self._reader.feed(data) res = self._reader.gets() while res is not False: - if isinstance(res, basestring): + if isinstance(res, str): res = self.tryConvertData(res) elif isinstance(res, list): - res = map(self.tryConvertData, res) + res = list(map(self.tryConvertData, res)) if res == "QUEUED": self.transactions += 1 else: @@ -1648,9 +1648,9 @@ def replyReceived(self, reply): if isinstance(reply, list): - if reply[-3] == u"message": + if reply[-3] == "message": self.messageReceived(None, *reply[-2:]) - elif len(reply) > 3 and reply[-4] == u"pmessage": + elif len(reply) > 3 and reply[-4] == "pmessage": self.messageReceived(*reply[-3:]) else: self.replyQueue.put(reply[-3:]) @@ -1658,22 +1658,22 @@ RefactoringTool: No changes to ../python3/tests/test_watch.py RefactoringTool: No changes to ../python3/tests/test_unix_connection.py RefactoringTool: No changes to ../python3/tests/test_transactions.py RefactoringTool: Refactored ../python3/tests/test_subscriber.py self.replyQueue.put(reply) def subscribe(self, channels): - if isinstance(channels, (str, unicode)): + if isinstance(channels, str): channels = [channels] return self.execute_command("SUBSCRIBE", *channels) def unsubscribe(self, channels): - if isinstance(channels, (str, unicode)): + if isinstance(channels, str): channels = [channels] return self.execute_command("UNSUBSCRIBE", *channels) def psubscribe(self, patterns): - if isinstance(patterns, (str, unicode)): + if isinstance(patterns, str): patterns = [patterns] return self.execute_command("PSUBSCRIBE", *patterns) def punsubscribe(self, patterns): - if isinstance(patterns, (str, unicode)): + if isinstance(patterns, str): patterns = [patterns] return self.execute_command("PUNSUBSCRIBE", *patterns) @@ -1815,7 +1815,7 @@ def add_node(self, node): self.nodes.append(node) - for x in xrange(self.replicas): + for x in range(self.replicas): crckey = zlib.crc32("%s:%d" % (node._factory.uuid, x)) self.ring[crckey] = node self.sorted_keys.append(crckey) @@ -1824,7 +1824,7 @@ def remove_node(self, node): self.nodes.remove(node) - for x in xrange(self.replicas): + for x in range(self.replicas): crckey = zlib.crc32("%s:%d" % (node, x)) self.ring.remove(crckey) self.sorted_keys.remove(crckey) @@ -1863,7 +1863,7 @@ self._ring = HashRing(connections) def _makeRing(self, connections): - connections = map(operator.itemgetter(1), connections) + connections = list(map(operator.itemgetter(1), connections)) self._ring = HashRing(connections) return self @@ -1879,7 +1879,7 @@ def _wrap(self, method, *args, **kwargs): try: key = args[0] - assert isinstance(key, (str, unicode)) + assert isinstance(key, str) except: raise ValueError( "Method '%s' requires a key as the first argument" % method) @@ -1914,7 +1914,7 @@ group[node].append(k) deferreds = [] - for node, keys in group.items(): + for node, keys in list(group.items()): nd = node.mget(keys) deferreds.append(nd) @@ -1963,7 +1963,7 @@ raise ValueError("Redis poolsize must be an integer, not %s" % repr(poolsize)) - if not isinstance(dbid, (int, types.NoneType)): + if not isinstance(dbid, (int, type(None))): raise ValueError("Redis dbid must be an integer, not %s" % repr(dbid)) @@ -2002,7 +2002,7 @@ def delConnection(self, conn): try: self.pool.remove(conn) - except Exception, e: + except Exception as e: log.msg("Could not remove connection from pool: %s" % str(e)) self.size = len(self.pool) @@ -2067,7 +2067,7 @@ factory = RedisFactory(uuid, dbid, poolsize, isLazy, ConnectionHandler, charset, password) factory.continueTrying = reconnect - for x in xrange(poolsize): + for x in range(poolsize): reactor.connectTCP(host, port, factory) if isLazy: @@ -2146,7 +2146,7 @@ factory = RedisFactory(path, dbid, poolsize, isLazy, UnixConnectionHandler, charset, password) factory.continueTrying = reconnect - for x in xrange(poolsize): + for x in range(poolsize): reactor.connectUNIX(path, factory) if isLazy: --- ../python3/tests/test_subscriber.py (original) +++ ../python3/tests/test_subscriber.py (refactored) @@ -72,10 +72,10 @@ @defer.inlineCallbacks def testSubscribe(self): reply = yield self.db.subscribe("test_subscribe1") - self.assertEqual(reply, [u"subscribe", u"test_subscribe1", 1]) + self.assertEqual(reply, ["subscribe", "tRefactoringTool: Refactored ../python3/tests/test_sortedsets.py RefactoringTool: Refactored ../python3/tests/test_sort.py RefactoringTool: Refactored ../python3/tests/test_sets.py est_subscribe1", 1]) reply = yield self.db.subscribe("test_subscribe2") - self.assertEqual(reply, [u"subscribe", u"test_subscribe2", 2]) + self.assertEqual(reply, ["subscribe", "test_subscribe2", 2]) @defer.inlineCallbacks def testUnsubscribe(self): @@ -83,17 +83,17 @@ yield self.db.subscribe("test_unsubscribe2") reply = yield self.db.unsubscribe("test_unsubscribe1") - self.assertEqual(reply, [u"unsubscribe", u"test_unsubscribe1", 1]) + self.assertEqual(reply, ["unsubscribe", "test_unsubscribe1", 1]) reply = yield self.db.unsubscribe("test_unsubscribe2") - self.assertEqual(reply, [u"unsubscribe", u"test_unsubscribe2", 0]) + self.assertEqual(reply, ["unsubscribe", "test_unsubscribe2", 0]) @defer.inlineCallbacks def testPSubscribe(self): reply = yield self.db.psubscribe("test_psubscribe1.*") - self.assertEqual(reply, [u"psubscribe", u"test_psubscribe1.*", 1]) + self.assertEqual(reply, ["psubscribe", "test_psubscribe1.*", 1]) reply = yield self.db.psubscribe("test_psubscribe2.*") - self.assertEqual(reply, [u"psubscribe", u"test_psubscribe2.*", 2]) + self.assertEqual(reply, ["psubscribe", "test_psubscribe2.*", 2]) @defer.inlineCallbacks def testPUnsubscribe(self): @@ -101,6 +101,6 @@ yield self.db.psubscribe("test_punsubscribe2.*") reply = yield self.db.punsubscribe("test_punsubscribe1.*") - self.assertEqual(reply, [u"punsubscribe", u"test_punsubscribe1.*", 1]) + self.assertEqual(reply, ["punsubscribe", "test_punsubscribe1.*", 1]) reply = yield self.db.punsubscribe("test_punsubscribe2.*") - self.assertEqual(reply, [u"punsubscribe", u"test_punsubscribe2.*", 0]) + self.assertEqual(reply, ["punsubscribe", "test_punsubscribe2.*", 0]) --- ../python3/tests/test_sortedsets.py (original) +++ ../python3/tests/test_sortedsets.py (refactored) @@ -156,9 +156,9 @@ agg_map = { 'min': (('min', min), { -1: [('three', -3)], - 0: [(u'three', 0)], - 1: [(u'three', 3)], - 2: [(u'three', 3)], + 0: [('three', 0)], + 1: [('three', 3)], + 2: [('three', 3)], }), 'max': (('max', max), { -1: [('three', 3)], @@ -337,7 +337,7 @@ for x in range(begin, end): l.extend((x, self._to_words(x))) return self.db.zadd(key, *l).addCallback( - self._sorted_set_check, zip(l[1::2], l[::2])) + self._sorted_set_check, list(zip(l[1::2], l[::2]))) @defer.inlineCallbacks def setUp(self): --- ../python3/tests/test_sort.py (original) +++ ../python3/tests/test_sort.py (refactored) @@ -66,4 +66,4 @@ yield self.db.lpush('txredisapi:alphavals', ['dog', 'cat', 'apple']) r = yield self.db.sort('txredisapi:alphavals', alpha=True) - self.assertEquals(['apple', 'cat', 'dog'], r) + self.assertEqual(['apple', 'cat', 'dog'], r) --- ../python3/tests/test_sets.py (original) +++ ../python3/tests/test_sets.py (refactored) @@ -43,7 +43,7 @@ @defer.inlineCallbacks def test_saddrem(self): - s = set(xrange(self.N)) + s = set(range(self.N)) r = yield self.db.sadd(self._KEYS[0], s) self.assertEqual(r, len(s)) a = s.pop() @@ -70,10 +70,10 @@ @defer.inlineCallbacks def test_sunion(self): - s = set(xrange(self.N)) + s = set(range(self.N)) s1 = set() for x in range(4): - ss = set(s.pop() for x in xrange(self.N >> 2)) + ss = set(s.pop() for x in range(self.N >> 2)) s1.update(ss) r = yield self.db.sadd(self._KEYS[x], ss) self.assertEqual(r, len(ss)) @@ -87,7 +87,7 @@ @defer.inlineCallbacks def test_sdiff(self): - l = range(self.N) + l = list(range(self.N)) random.shuffle(l) p1 = RefactoringTool: No changes to ../python3/tests/test_scripting.py RefactoringTool: No changes to ../python3/tests/test_publish.py RefactoringTool: Refactored ../python3/tests/test_pipelining.py RefactoringTool: Refactored ../python3/tests/test_operations.py RefactoringTool: Refactored ../python3/tests/test_multibulk.py RefactoringTool: No changes to ../python3/tests/test_list_ops.py RefactoringTool: No changes to ../python3/tests/test_hyperloglog.py RefactoringTool: Refactored ../python3/tests/test_hash_ops.py RefactoringTool: Refactored ../python3/tests/test_connection_charset.py set(l[:self.N >> 1]) random.shuffle(l) @@ -107,7 +107,7 @@ @defer.inlineCallbacks def test_sinter(self): - l = range(self.N) + l = list(range(self.N)) random.shuffle(l) p1 = set(l[:self.N >> 1]) random.shuffle(l) @@ -127,7 +127,7 @@ @defer.inlineCallbacks def test_smembers(self): - s = set(xrange(self.N)) + s = set(range(self.N)) r = yield self.db.sadd(self._KEYS[0], s) self.assertEqual(r, len(s)) r = yield self.db.smembers(self._KEYS[0]) --- ../python3/tests/test_pipelining.py (original) +++ ../python3/tests/test_pipelining.py (refactored) @@ -127,7 +127,7 @@ try: yield db.pipeline() raise self.failureException("Expected sharding to disallow pipelining") - except NotImplementedError, e: + except NotImplementedError as e: self.assertTrue("not supported" in str(e).lower()) yield db.disconnect() @@ -139,6 +139,6 @@ try: yield db.pipeline() raise self.failureException("Expected sharding to disallow pipelining") - except NotImplementedError, e: + except NotImplementedError as e: self.assertTrue("not supported" in str(e).lower()) yield db.disconnect() --- ../python3/tests/test_operations.py (original) +++ ../python3/tests/test_operations.py (refactored) @@ -41,7 +41,7 @@ k = ["txredisapi:a", "txredisapi:b"] v = [1, 2] - yield db.mset(dict(zip(k, v))) + yield db.mset(dict(list(zip(k, v)))) values = yield db.mget(k) self.assertEqual(values, v) --- ../python3/tests/test_multibulk.py (original) +++ ../python3/tests/test_multibulk.py (refactored) @@ -80,8 +80,8 @@ def testNestedMultiBulkTransaction(self): db = yield redis.Connection(REDIS_HOST, REDIS_PORT, reconnect=False) - test1 = {u"foo1": u"bar1", u"something": u"else"} - test2 = {u"foo2": u"bar2", u"something": u"else"} + test1 = {"foo1": "bar1", "something": "else"} + test2 = {"foo2": "bar2", "something": "else"} t = yield db.multi() yield t.hmset("txredisapi:nmb:test1", test1) --- ../python3/tests/test_hash_ops.py (original) +++ ../python3/tests/test_hash_ops.py (refactored) @@ -39,9 +39,9 @@ t_dict['key1'] = 'uno' t_dict['key2'] = 'dos' yield db.hmset("txredisapi:HMSetHMGet", t_dict) - ks = t_dict.keys() + ks = list(t_dict.keys()) ks.reverse() - vs = t_dict.values() + vs = list(t_dict.values()) vs.reverse() res = yield db.hmget("txredisapi:HMSetHMGet", ks) self.assertEqual(vs, res) @@ -56,8 +56,8 @@ t_dict['key2'] = 'dos' yield db.hmset("txredisapi:HKeysHVals", t_dict) - vs_u = [unicode(v) for v in t_dict.values()] - ks_u = [unicode(k) for k in t_dict.keys()] + vs_u = [str(v) for v in list(t_dict.values())] + ks_u = [str(k) for k in list(t_dict.keys())] k_res = yield db.hkeys("txredisapi:HKeysHVals") v_res = yield db.hvals("txredisapi:HKeysHVals") self.assertEqual(ks_u, k_res) @@ -125,7 +125,7 @@ def testRedisHGetAll(self): db = yield redis.Connection(REDIS_HOST, REDIS_PORT, reconnect=False) - d = {u"key1": u"uno", u"key2": u"dos"} + d = {"key1": "uno", "key2": "dos"} yield db.hmset("txredisapi:HGetAll", d) s = yield db.hgetall("txredisapi:HGetAll") --- ../python3/tests/test_connection_charset.py (original) +++ ../python3/tests/test_connection_charset.py (refactored) @@ -20,7 +20,7 @@ class TestConnectionCharset(unittest.TestCase): TEST_KEY = 'txredisapi:test_key' - TEST_VALUE_UNICODE = u'\u262d' * 3 + TEST_VALUE_UNICODE = '\u262d' * 3 TEST_VALUE_BINARY = TEST_VALUE_UNICODE.encode('utf-8') @defer.inlineCallbacks @@ -41,7 +41,7 @@ yield db.set(self.TEST_KEY, self.TEST_VALUE_UNICODE) result = yield db.get(self.TEST_KEY) - self.assertTrue(typRefactoringTool: No changes to ../python3/tests/test_connection.py RefactoringTool: No changes to ../python3/tests/test_blocking.py RefactoringTool: No changes to ../python3/tests/test_bitops.py RefactoringTool: Refactored ../python3/tests/mixins.py RefactoringTool: Refactored ../python3/tests/chash_distribution.py RefactoringTool: No changes to ../python3/tests/__init__.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/examples/wordfreq.py RefactoringTool: No changes to ../python3/examples/twistedweb_server.py RefactoringTool: Refactored ../python3/examples/transaction.py RefactoringTool: Refactored ../python3/examples/subscriber.py e(result) == unicode) + self.assertTrue(type(result) == str) self.assertEqual(result, self.TEST_VALUE_UNICODE) yield db.delete(self.TEST_KEY) --- ../python3/tests/mixins.py (original) +++ ../python3/tests/mixins.py (refactored) @@ -24,11 +24,11 @@ @defer.inlineCallbacks def checkVersion(self, major, minor, patch=0): d = yield self.db.info("server") - if u'redis_version' not in d: + if 'redis_version' not in d: defer.returnValue(False) - ver = d[u'redis_version'] + ver = d['redis_version'] self.redis_version = ver - ver_list = [int(x) for x in ver.split(u'.')] + ver_list = [int(x) for x in ver.split('.')] if len(ver_list) < 2: defer.returnValue(False) if len(ver_list) == 2: --- ../python3/tests/chash_distribution.py (original) +++ ../python3/tests/chash_distribution.py (refactored) @@ -8,10 +8,10 @@ ch = HashRing(["server1", "server2", "server3"]) key_history = {} node_histogram = defaultdict(lambda: 0) - for x in xrange(1000): + for x in range(1000): key_history[x] = ch.get_node("k:%d" % x) s = key_history[x] node_histogram[s] = node_histogram[s] + 1 - print "server\t\tkeys:" - for a in node_histogram.keys(): - print "%s:\t%d" % (a, node_histogram[a]) + print("server\t\tkeys:") + for a in list(node_histogram.keys()): + print("%s:\t%d" % (a, node_histogram[a])) --- ../python3/examples/wordfreq.py (original) +++ ../python3/examples/wordfreq.py (refactored) @@ -13,8 +13,8 @@ f = open(file, 'r') words = f.read() f.close() - except Exception, e: - print "Exception: %s" % e + except Exception as e: + print("Exception: %s" % e) return None wf = {} @@ -39,9 +39,9 @@ if __name__ == '__main__': if len(sys.argv) < 2: - print "Usage: wordfreq.py " + print("Usage: wordfreq.py ") sys.exit(-1) l, wfl = wordfreq(sys.argv[1]) - print "count: %d" % l - main(wfl.keys()) + print("count: %d" % l) + main(list(wfl.keys())) reactor.run() --- ../python3/examples/transaction.py (original) +++ ../python3/examples/transaction.py (refactored) @@ -42,7 +42,7 @@ txn.incr('test:a') txn.lpush('test:l', 'test') r = yield txn.commit() # Commit txn,call txn.discard() to discard it - print 'Transaction1: %s' % r + print('Transaction1: %s' % r) # Another transaction with a few values to watch on txn1 = yield conn.multi(['test:l', 'test:h']) @@ -51,7 +51,7 @@ # Transactions with watched keys will fail if any of the keys are modified # externally after calling .multi() and before calling transaction.commit() r = yield txn1.commit() # This will raise if WatchError if txn1 fails. - print 'Transaction2: %s' % r + print('Transaction2: %s' % r) yield conn.disconnect() --- ../python3/examples/subscriber.py (original) +++ ../python3/examples/subscriber.py (refactored) @@ -29,10 +29,10 @@ class myProtocol(redis.SubscriberProtocol): def connectionMade(self): - print "waiting for messages..." - print "use the redis client to send messages:" - print "$ redis-cli publish zz test" - print "$ redis-cli publish foo.bar hello world" + print("waiting for messages...") + print("use the redis client to send messages:") + print("$ redis-cli publish zz test") + print("$ redis-cli publish foo.bar hello world") self.subscribe("zz") self.psubscribe("foo.*") # reactor.callLater(10, self.unsubscribe, "zz") @@ -42,10 +42,10 @@ # self.transport.loseConnection() def messageReceived(self, pattern, channel, message): - print "pattern=%s, channel=%s message=%s" % (pattern, channel, message) + print("pattern=%s, channel=%s message=%s" % (pattern, channel, message)) def connectionLost(self, reason): - print "lost connection:", reason +RefactoringTool: Refactored ../python3/examples/sharding.py RefactoringTool: Refactored ../python3/examples/monitor.py RefactoringTool: Refactored ../python3/examples/cyclone_demo.py RefactoringTool: Refactored ../python3/examples/benchmark.py print("lost connection:", reason) class myFactory(redis.SubscriberFactory): --- ../python3/examples/sharding.py (original) +++ ../python3/examples/sharding.py (refactored) @@ -11,25 +11,25 @@ def main(): # run two redis servers, one at port 6379 and another in 6380 conn = yield redis.ShardedConnection(["localhost:6379", "localhost:6380"]) - print repr(conn) + print(repr(conn)) - keys = ["test:%d" % x for x in xrange(100)] + keys = ["test:%d" % x for x in range(100)] for k in keys: try: yield conn.set(k, "foobar") except: - print 'ops' + print('ops') result = yield conn.mget(keys) - print result + print(result) # testing tags - keys = ["test{lero}:%d" % x for x in xrange(100)] + keys = ["test{lero}:%d" % x for x in range(100)] for k in keys: yield conn.set(k, "foobar") result = yield conn.mget(keys) - print result + print(result) yield conn.disconnect() --- ../python3/examples/monitor.py (original) +++ ../python3/examples/monitor.py (refactored) @@ -26,15 +26,15 @@ class myMonitor(txredisapi.MonitorProtocol): def connectionMade(self): - print "waiting for monitor data" - print "use the redis client to send commands in another terminal" + print("waiting for monitor data") + print("use the redis client to send commands in another terminal") self.monitor() def messageReceived(self, message): - print ">> %s" % message + print(">> %s" % message) def connectionLost(self, reason): - print "lost connection:", reason + print("lost connection:", reason) class myFactory(txredisapi.MonitorFactory): --- ../python3/examples/cyclone_demo.py (original) +++ ../python3/examples/cyclone_demo.py (refactored) @@ -76,7 +76,7 @@ def unsubscribe_all(self, ign): # Unsubscribe peer from all channels - for channel, peers in RedisMixin.channels.iteritems(): + for channel, peers in RedisMixin.channels.items(): try: peers.pop(peers.index(self)) except: @@ -111,7 +111,7 @@ def get(self, key): try: value = yield self.dbconn.get(key) - except Exception, e: + except Exception as e: log.err("Redis failed to get('%s'): %s" % (key, str(e))) raise cyclone.web.HTTPError(503) @@ -123,7 +123,7 @@ value = self.get_argument("value") try: yield self.dbconn.set(key, value) - except Exception, e: + except Exception as e: r = (key, value, str(e)) log.err("Redis failed to set('%s', '%s'): %s" % r) raise cyclone.web.HTTPError(503) @@ -135,7 +135,7 @@ def delete(self, key): try: n = yield self.dbconn.delete(key) - except Exception, e: + except Exception as e: log.err("Redis failed to del('%s'): %s" % (key, str(e))) raise cyclone.web.HTTPError(503) @@ -150,7 +150,7 @@ def get(self, channels): try: channels = channels.split(",") - except Exception, e: + except Exception as e: log.err("Could not split channel names: %s" % str(e)) raise cyclone.web.HTTPError(400, str(e)) @@ -169,7 +169,7 @@ try: n = yield self.dbconn.publish(channel, message.encode("utf-8")) - except Exception, e: + except Exception as e: log.msg("Redis failed to publish('%s', '%s'): %s" % (channel, repr(message), str(e))) raise cyclone.web.HTTPError(503) --- ../python3/examples/benchmark.py (original) +++ ../python3/examples/benchmark.py (refactored) @@ -15,10 +15,10 @@ key = 'test' conn = yield redis.Connection(HOST, PORT) start = time.time() - for i in xrange(N): + for i in range(N): yield conn.set(key, 'test_data') yield conn.get(key) - print "done set-get: %.4fs." % ((time.timRefactoringTool: Files that were modified: RefactoringTool: ../python3/txredisapi.py RefactoringTool: ../python3/tests/test_watch.py RefactoringTool: ../python3/tests/test_unix_connection.py RefactoringTool: ../python3/tests/test_transactions.py RefactoringTool: ../python3/tests/test_subscriber.py RefactoringTool: ../python3/tests/test_sortedsets.py RefactoringTool: ../python3/tests/test_sort.py RefactoringTool: ../python3/tests/test_sets.py RefactoringTool: ../python3/tests/test_scripting.py RefactoringTool: ../python3/tests/test_publish.py RefactoringTool: ../python3/tests/test_pipelining.py RefactoringTool: ../python3/tests/test_operations.py RefactoringTool: ../python3/tests/test_multibulk.py RefactoringTool: ../python3/tests/test_list_ops.py RefactoringTool: ../python3/tests/test_hyperloglog.py RefactoringTool: ../python3/tests/test_hash_ops.py RefactoringTool: ../python3/tests/test_connection_charset.py RefactoringTool: ../python3/tests/test_connection.py RefactoringTool: ../python3/tests/test_blocking.py RefactoringTool: ../python3/tests/test_bitops.py RefactoringTool: ../python3/tests/mixins.py RefactoringTool: ../python3/tests/chash_distribution.py RefactoringTool: ../python3/tests/__init__.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/examples/wordfreq.py RefactoringTool: ../python3/examples/twistedweb_server.py RefactoringTool: ../python3/examples/transaction.py RefactoringTool: ../python3/examples/subscriber.py RefactoringTool: ../python3/examples/sharding.py RefactoringTool: ../python3/examples/monitor.py RefactoringTool: ../python3/examples/cyclone_demo.py RefactoringTool: ../python3/examples/benchmark.py e() - start) / N) + print("done set-get: %.4fs." % ((time.time() - start) / N)) @defer.inlineCallbacks @@ -26,11 +26,11 @@ key = 'test_list' list_length = 1000 conn = yield redis.Connection(HOST, PORT) - yield defer.DeferredList([conn.lpush(key, str(i)) for i in xrange(list_length)]) + yield defer.DeferredList([conn.lpush(key, str(i)) for i in range(list_length)]) start = time.time() - for i in xrange(N): + for i in range(N): yield conn.lrange(key, 0, 999) - print "done lrange: %.4fs." % ((time.time() - start) / N) + print("done lrange: %.4fs." % ((time.time() - start) / N)) @defer.inlineCallbacks + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.25040 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredisapi-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python2.7 setup.py build running build running build_py creating build creating build/lib copying txredisapi.py -> build/lib + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/txredisapi-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib copying txredisapi.py -> build/lib + popd ~/RPM/BUILD/txredisapi-1.2 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.12636 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-txredisapi-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-txredisapi-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd txredisapi-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python2.7 setup.py install --skip-build --root=/usr/src/tmp/python-module-txredisapi-buildroot --force --record=INSTALLED_FILES running install running install_lib creating /usr/src/tmp/python-module-txredisapi-buildroot creating /usr/src/tmp/python-module-txredisapi-buildroot/usr creating /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib creating /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages copying build/lib/txredisapi.py -> /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages byte-compiling /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi.py to txredisapi.pyc running install_egg_info running egg_info creating txredisapi.egg-info writing requirements to txredisapi.egg-info/requires.txt writing txredisapi.egg-info/PKG-INFO writing top-level names to txredisapi.egg-info/top_level.txt writing dependency_links to txredisapi.egg-info/dependency_links.txt writing manifest file 'txredisapi.egg-info/SOURCES.txt' reading manifest file 'txredisapi.egg-info/SOURCES.txt' writing manifest file 'txredisapi.egg-info/SOURCES.txt' Copying txredisapi.egg-info to /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info running install_scripts writing list of installed files to 'INSTALLED_FILES' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/txredisapi-1.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-txredisapi-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages copying build/lib/txredisapi.py -> /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi.py to txredisapi.cpython-37.pyc running install_egg_info running egg_info creating txredisapi.egg-info writing txredisapi.egg-info/PKG-INFO writing dependency_links to txredisapi.egg-info/dependency_links.txt writing requirements to txredisapi.egg-info/requires.txt writing top-level names to txredisapi.egg-info/top_level.txt writing manifest file 'txredisapi.egg-info/SOURCES.txt' reading manifest file 'txredisapi.egg-info/SOURCES.txt' writing manifest file 'txredisapi.egg-info/SOURCES.txt' Copying txredisapi.egg-info to /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi-1.2-py3.7.egg-info running install_scripts + popd ~/RPM/BUILD/txredisapi-1.2 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-txredisapi-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-txredisapi-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python-module-txredisapi-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-txredisapi-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-txredisapi-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-txredisapi-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-txredisapi-buildroot using /usr/bin/python2.7 unlink /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi.pyc compile /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-txredisapi-buildroot using /usr/bin/python2.7 -O compile /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi.py Bytecompiling python3 modules in /usr/src/tmp/python-module-txredisapi-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-37.pyc compile /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-txredisapi-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-txredisapi-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi.py Hardlinking identical .pyc and .opt-?.pyc files Hardlinking identical .pyc and .pyo files Processing files: python-module-txredisapi-1.2-alt1.git20140728.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.57122 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredisapi-1.2 + DOCDIR=/usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + export DOCDIR + rm -rf /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + /bin/mkdir -p /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + cp -prL README.md /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + chmod -R go-w /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + chmod -R a+rX /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python-module-txredisapi-1.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.F9hA1m find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.rVxzA1 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python2.7/site-packages/txredisapi.py: line=45 IGNORE (for REQ=slight and deep=8) module=hiredis Provides: python2.7-module-txredisapi = 1.2-alt1.git20140728, python2.7(txredisapi) Requires: python = 2.7, /usr/lib/python2.7/site-packages, python-modules, python2.7(bisect), python2.7(twisted) Processing files: python3-module-txredisapi-1.2-alt1.git20140728.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.33084 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredisapi-1.2 + DOCDIR=/usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + export DOCDIR + rm -rf /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + /bin/mkdir -p /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + cp -prL README.md /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + chmod -R go-w /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + chmod -R a+rX /usr/src/tmp/python-module-txredisapi-buildroot/usr/share/doc/python3-module-txredisapi-1.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.lkRRQn find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.GSQwna find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/txredisapi.py: line=45 IGNORE (for REQ=slight and deep=8) module=hiredis Provides: python3(txredisapi) Requires: /usr/lib/python3/site-packages, python3(bisect) < 0, python3(collections) < 0, python3(functools) < 0, python3(hashlib) < 0, python3(operator) < 0, python3(re) < 0, python3(string) < 0, python3(twisted.internet) < 0, python3(twisted.protocols) < 0, python3(twisted.python) < 0, python3(twisted.python.failure) < 0, python3(types) < 0, python3(warnings) < 0, python3(zlib) < 0 warning: Installed (but unpackaged) file(s) found: /usr/lib/python2.7/site-packages/txredisapi.pyo Wrote: /usr/src/RPM/RPMS/noarch/python-module-txredisapi-1.2-alt1.git20140728.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-txredisapi-1.2-alt1.git20140728.1.2.noarch.rpm (w2.lzdio) 15.18user 0.74system 0:18.41elapsed 86%CPU (0avgtext+0avgdata 26256maxresident)k 0inputs+0outputs (0major+223000minor)pagefaults 0swaps 23.90user 4.52system 0:35.01elapsed 81%CPU (0avgtext+0avgdata 118148maxresident)k 0inputs+0outputs (0major+657090minor)pagefaults 0swaps