<86>Apr 21 01:15:13 userdel[5305]: delete user 'rooter' <86>Apr 21 01:15:13 groupadd[5677]: group added to /etc/group: name=rooter, GID=633 <86>Apr 21 01:15:13 groupadd[5677]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:15:13 groupadd[5677]: new group: name=rooter, GID=633 <86>Apr 21 01:15:13 useradd[5788]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash <86>Apr 21 01:15:13 userdel[5857]: delete user 'builder' <86>Apr 21 01:15:13 userdel[5857]: removed group 'builder' owned by 'builder' <86>Apr 21 01:15:13 userdel[5857]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:15:13 groupadd[5908]: group added to /etc/group: name=builder, GID=634 <86>Apr 21 01:15:13 groupadd[5908]: group added to /etc/gshadow: name=builder <86>Apr 21 01:15:13 groupadd[5908]: new group: name=builder, GID=634 <86>Apr 21 01:15:13 useradd[5931]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash <13>Apr 21 01:15:16 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:15:16 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 01:15:16 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:15:16 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:15:16 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:16 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 01:15:16 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 01:15:16 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 01:15:16 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 01:15:16 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 01:15:16 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 01:15:16 groupadd[19947]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 01:15:16 groupadd[19947]: group added to /etc/gshadow: name=_keytab <86>Apr 21 01:15:16 groupadd[19947]: new group: name=_keytab, GID=499 <13>Apr 21 01:15:16 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 01:15:16 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:15:16 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:16 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:15:16 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:16 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:15:16 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 01:15:16 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:15:17 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:15:17 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:15:17 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:15:17 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:15:17 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-txredisapi-1.2-alt1.git20140728.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.94086 + 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 " @@ -420,12 +420,12 @@ self.commit_cc() if self.inTransaction: # watch but no multi: process the reply as usual f = self.post_proc[1:] - if len(f) == 1 and callable(f[0]): + if len(f) == 1 and isinstance(f[0], collections.Callable): reply = f[0](reply) else: # multi: this must be an exec reply tmp = [] for f, v in zip(self.post_proc[1:], reply): - if callable(f): + if isinstance(f, collections.Callable): tmp.append(f(v)) else: tmp.append(v) @@ -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)) @@ -499,7 +499,7 @@ else: if "post_proc" in kwargs: f = kwargs["post_proc"] - if callable(f): + if isinstance(f, collections.Callable): r.addCallback(f) return r @@ -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 @@ 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) @@ 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 RefactoringTool: Refactored ../python3/tests/test_sortedsets.py RefactoringTool: Refactored ../python3/tests/test_sort.py -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", "test_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.aRefactoringTool: Refactored ../python3/tests/test_sets.py 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 ssertEqual(['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 = 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("txredisapRefactoringTool: Refactored ../python3/tests/test_connection_charset.py RefactoringTool: 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 i: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(type(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) @RefactoringTool: Refactored ../python3/examples/sharding.py RefactoringTool: Refactored ../python3/examples/monitor.py RefactoringTool: Refactored ../python3/examples/cyclone_demo.py @ -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 + 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 RefactoringTool: Refactored ../python3/examples/benchmark.py RefactoringTool: 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 @@ 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.time() - 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.91824 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredisapi-1.2 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + 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 -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + 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.91824 + 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 + cd txredisapi-1.2 + /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 + 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-35.pyc running install_egg_info running egg_info creating txredisapi.egg-info 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 requirements to txredisapi.egg-info/requires.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.5.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) 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 python3 unlink /usr/src/tmp/python-module-txredisapi-buildroot/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-35.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 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 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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.40408 + 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 warning: File listed twice: /usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info/PKG-INFO warning: File listed twice: /usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info/SOURCES.txt warning: File listed twice: /usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info/dependency_links.txt warning: File listed twice: /usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info/requires.txt warning: File listed twice: /usr/lib/python2.7/site-packages/txredisapi-1.2-py2.7.egg-info/top_level.txt Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7GuXRB 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.yvwO7Q find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.74009 + 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.XET1R9 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.4eXMBv find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /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), python3.3(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) < 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.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-txredisapi-1.2-alt1.git20140728.1.1.noarch.rpm 9.51user 0.50system 0:16.04elapsed 62%CPU (0avgtext+0avgdata 44904maxresident)k 0inputs+0outputs (0major+221653minor)pagefaults 0swaps 13.54user 2.55system 0:23.00elapsed 69%CPU (0avgtext+0avgdata 123856maxresident)k 0inputs+0outputs (0major+463707minor)pagefaults 0swaps --- python3-module-txredisapi-1.2-alt1.git20140728.1.1.noarch.rpm.repo 2016-03-16 16:42:07.000000000 +0000 +++ python3-module-txredisapi-1.2-alt1.git20140728.1.1.noarch.rpm.hasher 2019-04-21 01:15:35.085425629 +0000 @@ -1,10 +1,11 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/txredisapi-1.2-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/txredisapi.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/txredisapi-1.2-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/txredisapi.py 100644 @@ -13,12 +14,13 @@ Requires: /usr/lib/python3/site-packages -Requires: python3.3(bisect) -Requires: python3.3(collections) -Requires: python3.3(functools) -Requires: python3.3(hashlib) -Requires: python3.3(re) -Requires: python3.3(string) -Requires: python3.3(twisted) -Requires: python3.3(types) -Requires: python3.3(warnings) -Requires: python3.3(zlib) +Requires: python3(bisect) < 0 +Requires: python3(collections) < 0 +Requires: python3(functools) < 0 +Requires: python3(hashlib) < 0 +Requires: python3(operator) < 0 +Requires: python3(re) < 0 +Requires: python3(string) < 0 +Requires: python3(twisted) < 0 +Requires: python3(types) < 0 +Requires: python3(warnings) < 0 +Requires: python3(zlib) < 0 Requires: rpmlib(PayloadIsLzma)