<86>Aug 1 10:32:29 userdel[59883]: delete user 'rooter' <86>Aug 1 10:32:29 userdel[59883]: removed group 'rooter' owned by 'rooter' <86>Aug 1 10:32:29 userdel[59883]: removed shadow group 'rooter' owned by 'rooter' <86>Aug 1 10:32:29 groupadd[59888]: group added to /etc/group: name=rooter, GID=654 <86>Aug 1 10:32:29 groupadd[59888]: group added to /etc/gshadow: name=rooter <86>Aug 1 10:32:29 groupadd[59888]: new group: name=rooter, GID=654 <86>Aug 1 10:32:29 useradd[59892]: new user: name=rooter, UID=654, GID=654, home=/root, shell=/bin/bash <86>Aug 1 10:32:29 userdel[59898]: delete user 'builder' <86>Aug 1 10:32:29 userdel[59898]: removed group 'builder' owned by 'builder' <86>Aug 1 10:32:29 userdel[59898]: removed shadow group 'builder' owned by 'builder' <86>Aug 1 10:32:29 groupadd[59903]: group added to /etc/group: name=builder, GID=655 <86>Aug 1 10:32:29 groupadd[59903]: group added to /etc/gshadow: name=builder <86>Aug 1 10:32:29 groupadd[59903]: new group: name=builder, GID=655 <86>Aug 1 10:32:29 useradd[59907]: new user: name=builder, UID=655, GID=655, home=/usr/src, shell=/bin/bash <13>Aug 1 10:32:32 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Aug 1 10:32:32 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>Aug 1 10:32:32 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 10:32:32 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Aug 1 10:32:32 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 10:32:33 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 10:32:33 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Aug 1 10:32:33 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Aug 1 10:32:33 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 10:32:33 rpmi: libcrypto1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 10:32:33 rpmi: libssl1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 10:32:33 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:32:33 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:32:34 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:32:34 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Aug 1 10:32:34 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Aug 1 10:32:39 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:32:39 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 10:32:39 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 10:32:39 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 10:32:39 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Aug 1 10:32:39 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Aug 1 10:32:39 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Aug 1 10:32:39 groupadd[68661]: group added to /etc/group: name=_keytab, GID=499 <86>Aug 1 10:32:39 groupadd[68661]: group added to /etc/gshadow: name=_keytab <86>Aug 1 10:32:39 groupadd[68661]: new group: name=_keytab, GID=499 <13>Aug 1 10:32:39 rpmi: libkrb5-1.17.2-alt2 p9+280683.100.2.1 1627489307 installed <13>Aug 1 10:32:39 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Aug 1 10:32:39 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Aug 1 10:32:39 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:39 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:40 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:32:40 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Aug 1 10:32:40 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 10:32:40 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 10:32:40 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-txredis-2.3-alt1.1.2.nosrc.rpm (w1.gzdio) Installing python-module-txredis-2.3-alt1.1.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.31063 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf txredis-2.3 + echo 'Source #0 (txredis-2.3.tar):' Source #0 (txredis-2.3.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/txredis-2.3.tar + cd txredis-2.3 + /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: No changes to ../python3/txredis/tests/test_hiredis.py RefactoringTool: Refactored ../python3/txredis/tests/test_client.py --- ../python3/txredis/tests/test_client.py (original) +++ ../python3/txredis/tests/test_client.py (refactored) @@ -149,13 +149,13 @@ ex = 'OK' t(a, ex) a = yield r.keys('a*') - ex = [u'a'] + ex = ['a'] t(a, ex) a = yield r.set('a2', 'a') ex = 'OK' t(a, ex) a = yield r.keys('a*') - ex = [u'a', u'a2'] + ex = ['a', 'a2'] t(a, ex) a = yield r.delete('a2') ex = 1 @@ -211,7 +211,7 @@ r = self.redis t = self.assertTrue a = yield r.dbsize() - t(isinstance(a, int) or isinstance(a, long)) + t(isinstance(a, int) or isinstance(a, int)) @defer.inlineCallbacks def test_expire(self): @@ -371,7 +371,7 @@ ex = 'OK' t(a, ex) a = yield r.get('a') - ex = u'a' + ex = 'a' t(a, ex) a = yield r.select(9) ex = 'OK' @@ -503,14 +503,14 @@ yield self.redis.set('a', "") r = yield self.redis.get('a') - self.assertEquals("", r) + self.assertEqual("", r) @defer.inlineCallbacks def test_set(self): a = yield self.redis.set('a', 'pippo') self.assertEqual(a, 'OK') - unicode_str = u'pippo \u3235' + unicode_str = 'pippo \u3235' a = yield self.redis.set('a', unicode_str) self.assertEqual(a, 'OK') @@ -544,14 +544,14 @@ t(a, 'OK') a = yield r.get('a') - t(a, u'pippo') + t(a, 'pippo') a = yield r.get('b') ex = '15' t(a, ex) a = yield r.get('d') - ex = u'\\r\\n' + ex = '\\r\\n' t(a, ex) a = yield r.get('b') @@ -559,7 +559,7 @@ t(a, ex) a = yield r.get('c') - ex = u' \\r\\naaa\\nbbb\\r\\ncccc\\nddd\\r\\n ' + ex = ' \\r\\naaa\\nbbb\\r\\ncccc\\nddd\\r\\n ' t(a, ex) a = yield r.get('ajhsd') @@ -576,7 +576,7 @@ t(a, ex) a = yield r.getset('a', 2) - ex = u'pippo' + ex = 'pippo' t(a, ex) @defer.inlineCallbacks @@ -597,8 +597,8 @@ ex = 'OK' t(a, ex) a = yield r.mget('a', 'b', 'c', 'd') - ex = [u'pippo', '15', - u'\\r\\naaa\\nbbb\\r\\ncccc\\nddd\\r\\n', u'\\r\\n'] + ex = ['pippo', '15', + '\\r\\naaa\\nbbb\\r\\ncccc\\nddd\\r\\n', '\\r\\n'] t(a, ex) @defer.inlineCallbacks @@ -698,7 +698,7 @@ yield self.redis.push(key, char) r = yield self.redis.lrange(key, 0, len(chars)) - self.assertEquals(["c", "", "a"], r) + self.assertEqual(["c", "", "a"], r) @defer.inlineCallbacks def test_concurrent(self): @@ -723,7 +723,7 @@ # 3. Wait on all responses and make sure we got them all r = yield defer.DeferredList(ds) - self.assertEquals(len(r), num_lists) + self.assertEqual(len(r), num_lists) @defer.inlineCallbacks def test_push(self): @@ -795,22 +795,22 @@ ex = 1 t(a, ex) a = yield r.lrange('l', 0, 1) - ex = [u'aaa'] + ex = ['aaa'] t(a, ex) a = yield r.push('l', 'bbb') ex = 2 t(a, ex) a = yield r.lrange('l', 0, 0) - ex = [u'bbb'] + ex = ['bbb'] t(a, ex) a = yield r.lrange('l', 0, 1) - ex = [u'bbb', u'aaa'] + ex = ['bbb', 'aaa'] t(a, ex) a = yield r.lrange('l', -1, 0) ex = [] t(a, ex) a = yield r.lrange('l', -1, -1) - ex = [u'aaa'] + ex = ['aaa'] t(a, ex) @defer.inlineCallbacks @@ -855,17 +855,17 @@ ex = 1 t(a, ex) a = yield r.lindex('l', 0) - ex = u'aaa' + ex = 'aaa' t(a, ex) yield r.lindex('l', 2) a = yield r.push('l', 'ccc') ex = 2 t(a, ex) a = yield r.lindex('l', 1) - ex = u'aaa' + ex = 'aaa' t(a, ex) a = yield r.lindex('l', -1) - ex = u'aaa' + ex = 'aaa' t(a, ex) @defer.inlineCallbacks @@ -882,10 +882,10 @@ ex = 2 t(a, ex) a = yield r.pop('l') - ex = u'bbb' + ex = 'bbb' t(a, ex) a = yield r.pop('l') - ex = u'aaa' + ex = 'aaa' t(a, ex) yield r.pop('l') a = yield r.push('l', 'aaa') @@ -895,10 +895,10 @@ ex = 2 t(a, ex) a = yield r.pop('l', tail=True) - ex = u'aaa' + ex = 'aaa' t(a, ex) a = yield r.pop('l') - ex = u'bbb' + ex = 'bbb' t(a, ex) a = yield r.pop('l') ex = None @@ -960,7 +960,7 @@ ex = 'OK' t(a, ex) a = yield r.lrange('l', 0, 1) - ex = [u'bbb'] + ex = ['bbb'] t(a, ex) @defer.inlineCallbacks @@ -982,7 +982,7 @@ ex = 2 t(a, ex) a = yield r.lrange('l', 0, 10) - ex = [u'bbb'] + ex = ['bbb'] t(a, ex) a = yield r.push('l', 'aaa') ex = 2 @@ -1139,7 +1139,7 @@ t(a, ex) a = yield r.spop('s') - ex = u'a' + ex = 'a' t(a, ex) @defer.inlineCallbacks @@ -1197,7 +1197,7 @@ ex = set([]) t(a, ex) a = yield r.sinter('s1', 's2') - ex = set([u'a']) + ex = set(['a']) t(a, ex) @defer.inlineCallbacks @@ -1224,7 +1224,7 @@ ex = 1 t(a, ex) a = yield r.smembers('s_s') - ex = set([u'a']) + ex = set(['a']) t(a, ex) @defer.inlineCallbacks @@ -1242,7 +1242,7 @@ ex = 1 t(a, ex) a = yield r.smembers('s') - ex = set([u'a', u'b']) + ex = set(['a', 'b']) t(a, ex) @defer.inlineCallbacks @@ -1263,13 +1263,13 @@ ex = 1 t(a, ex) a = yield r.sunion('s1', 's2', 's3') - ex = set([u'a', u'b']) + ex = set(['a', 'b']) t(a, ex) a = yield r.sadd('s2', 'c') ex = 1 t(a, ex) a = yield r.sunion('s1', 's2', 's3') - ex = set([u'a', u'c', u'b']) + ex = set(['a', 'c', 'b']) t(a, ex) @defer.inlineCallbacks @@ -1293,7 +1293,7 @@ ex = 2 t(a, ex) a = yield r.smembers('s4') - ex = set([u'a', u'b']) + ex = set(['a', 'b']) t(a, ex) @defer.inlineCallbacks @@ -1307,18 +1307,18 @@ r = self.redis t = self.assertEqual yield r.delete('l') - items = [007, 10, -5, 0.1, 100, -3, 20, 0.02, -3.141] + items = [0o07, 10, -5, 0.1, 100, -3, 20, 0.02, -3.141] for i in items: yield r.push('l', i, tail=True) a = yield r.sort('l') - ex = map(str, sorted(items)) + ex = list(map(str, sorted(items))) t(a, ex) @defer.inlineCallbacks def test_sort(self): r = self.redis t = self.assertEqual - s = lambda l: map(str, l) + s = lambda l: list(map(str, l)) yield r.delete('l') a = yield r.push('l', 'ccc') @@ -1334,7 +1334,7 @@ ex = 4 t(a, ex) a = yield r.sort('l', alpha=True) - ex = [u'aaa', u'bbb', u'ccc', u'ddd'] + ex = ['aaa', 'bbb', 'ccc', 'ddd'] t(a, ex) a = yield r.delete('l') ex = 1 @@ -1393,9 +1393,9 @@ yield self.redis.delete('h') yield self.redis.hset('h', 'blank', "") a = yield self.redis.hget('h', 'blank') - self.assertEquals(a, '') + self.assertEqual(a, '') a = yield self.redis.hgetall('h') - self.assertEquals(a, {'blank': ''}) + self.assertEqual(a, {'blank': ''}) @defer.inlineCallbacks def test_cas(self): @@ -1565,7 +1565,7 @@ t = self.assertEqual yield r.delete('s') - data = set(xrange(1, 100000)) + data = set(range(1, 100000)) for i in data: r.sadd('s', i) res = yield r.smembers('s') @@ -2085,20 +2085,20 @@ RefactoringTool: No changes to ../python3/txredis/testing.py RefactoringTool: Refactored ../python3/txredis/protocol.py self.assertFailure(d, RuntimeError) def checkMessage(error): - self.assertEquals(str(error), 'Not connected') + self.assertEqual(str(error), 'Not connected') return d.addCallback(checkMessage) def test_disconnect_during_request(self): d1 = self.proto.get("foo") d2 = self.proto.get("bar") - self.assertEquals(len(self.proto._request_queue), 2) + self.assertEqual(len(self.proto._request_queue), 2) self.transport.loseConnection() done = defer.DeferredList([d1, d2], consumeErrors=True) def checkFailures(results): - self.assertEquals(len(self.proto._request_queue), 0) + self.assertEqual(len(self.proto._request_queue), 0) for success, result in results: self.assertFalse(success) result.trap(error.ConnectionDone) @@ -2120,49 +2120,49 @@ def test_error_response(self): # pretending 'foo' is a set, so get is incorrect d = self.proto.get("foo") - self.assertEquals(self.transport.value(), + self.assertEqual(self.transport.value(), '*2\r\n$3\r\nGET\r\n$3\r\nfoo\r\n') msg = "Operation against a key holding the wrong kind of value" self.sendResponse("-%s\r\n" % msg) self.failUnlessFailure(d, ResponseError) def check_err(r): - self.assertEquals(str(r), msg) + self.assertEqual(str(r), msg) return d @defer.inlineCallbacks def test_singleline_response(self): d = self.proto.ping() - self.assertEquals(self.transport.value(), '*1\r\n$4\r\nPING\r\n') + self.assertEqual(self.transport.value(), '*1\r\n$4\r\nPING\r\n') self.sendResponse("+PONG\r\n") r = yield d - self.assertEquals(r, 'PONG') + self.assertEqual(r, 'PONG') @defer.inlineCallbacks def test_bulk_response(self): d = self.proto.get("foo") - self.assertEquals(self.transport.value(), + self.assertEqual(self.transport.value(), '*2\r\n$3\r\nGET\r\n$3\r\nfoo\r\n') self.sendResponse("$3\r\nbar\r\n") r = yield d - self.assertEquals(r, 'bar') + self.assertEqual(r, 'bar') @defer.inlineCallbacks def test_multibulk_response(self): d = self.proto.lrange("foo", 0, 1) expected = '*4\r\n$6\r\nLRANGE\r\n$3\r\nfoo\r\n$1\r\n0\r\n$1\r\n1\r\n' - self.assertEquals(self.transport.value(), expected) + self.assertEqual(self.transport.value(), expected) self.sendResponse("*2\r\n$3\r\nbar\r\n$6\r\nlolwut\r\n") r = yield d - self.assertEquals(r, ['bar', 'lolwut']) + self.assertEqual(r, ['bar', 'lolwut']) @defer.inlineCallbacks def test_integer_response(self): d = self.proto.dbsize() - self.assertEquals(self.transport.value(), '*1\r\n$6\r\nDBSIZE\r\n') + self.assertEqual(self.transport.value(), '*1\r\n$6\r\nDBSIZE\r\n') self.sendResponse(":1234\r\n") r = yield d - self.assertEquals(r, 1234) + self.assertEqual(r, 1234) class TestFactory(CommandsBaseTestCase): --- ../python3/txredis/protocol.py (original) +++ ../python3/txredis/protocol.py (refactored) @@ -280,10 +280,10 @@ """Encode a value for sending to the server.""" if isinstance(s, str): return s - if isinstance(s, unicode): + if isinstance(s, str): try: return s.encode(self.charset, self.errors) - except UnicodeEncodeError, e: + except UnicodeEncodeError as e: raise exceptions.InvalidData( "Error encoding unicode value '%s': %s" % ( s.encode(self.charset, 'replace'), e)) @@ -323,7 +323,7 @@ if isinstance(res, exceptions.ResponseError): self._request_queue.popleft().errback(res) else: - if isinstance(res, basestring) and res == 'none'RefactoringTool: No changes to ../python3/txredis/exceptions.py RefactoringTool: Refactored ../python3/txredis/client.py : + if isinstance(res, str) and res == 'none': res = None self._request_queue.popleft().callback(res) res = self._reader.gets() --- ../python3/txredis/client.py (original) +++ ../python3/txredis/client.py (refactored) @@ -74,7 +74,7 @@ res = {} if not values: return res - for i in xrange(0, len(values) - 1, 2): + for i in range(0, len(values) - 1, 2): res[values[i]] = values[i + 1] return res return self.getResponse().addCallback(post_process) @@ -131,7 +131,7 @@ unchanged. """ - self._send('msetnx', *list(itertools.chain(*mapping.iteritems()))) + self._send('msetnx', *list(itertools.chain(*iter(mapping.items())))) return self.getResponse() def mset(self, mapping, preserve=False): @@ -142,7 +142,7 @@ command = 'MSETNX' else: command = 'MSET' - self._send(command, *list(itertools.chain(*mapping.iteritems()))) + self._send(command, *list(itertools.chain(*iter(mapping.items())))) return self.getResponse() def append(self, key, value): @@ -963,7 +963,7 @@ stmt.extend(['LIMIT', start, num]) if get is None: pass - elif isinstance(get, basestring): + elif isinstance(get, str): stmt.extend(['GET', get]) elif isinstance(get, list) or isinstance(get, tuple): for g in get: @@ -1029,7 +1029,7 @@ at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created. """ - fields = list(itertools.chain(*in_dict.iteritems())) + fields = list(itertools.chain(*iter(in_dict.items()))) self._send('HMSET', key, *fields) return self.getResponse() @@ -1058,7 +1058,7 @@ """ Returns the value associated with field in the hash stored at key. """ - if isinstance(field, basestring): + if isinstance(field, str): self._send('HGET', key, field) else: self._send('HMGET', *([key] + field)) @@ -1066,9 +1066,9 @@ def post_process(values): if not values: return values - if isinstance(field, basestring): + if isinstance(field, str): return {field: values} - return dict(itertools.izip(field, values)) + return dict(zip(field, values)) return self.getResponse().addCallback(post_process) hmget = hget @@ -1077,7 +1077,7 @@ """ Get the value of a hash field """ - assert isinstance(field, basestring) + assert isinstance(field, str) self._send('HGET', key, field) return self.getResponse() @@ -1189,7 +1189,7 @@ as (value, score) for backwards compatibility reasons. """ if not kwargs and len(item_tuples) == 2 and \ - isinstance(item_tuples[0], basestring): + isinstance(item_tuples[0], str): self._send('ZADD', key, item_tuples[1], item_tuples[0]) elif not kwargs: self._send('ZADD', key, *item_tuples) @@ -1240,9 +1240,9 @@ args = [op, dstkey, len(keys)] # add in key names, and optionally weights if isinstance(keys, dict): - args.extend(list(keys.iterkeys())) + args.extend(list(keys.keys())) args.append('WEIGHTS') - args.extend(list(keys.itervalues())) + args.extend(list(keys.values())) else: args.extend(keys) if aggregate: @@ -1482,22 +1482,22 @@ Overrides RedisBase.handleCompleteMultiBulkData to intercept published message events. """ - if reply[0] == u"message": + if reply[0] == "message": channel, message = reply[1:] self.messageReceived(channel, message) - elif reply[0]RefactoringTool: Refactored ../python3/txredis/__init__.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: No changes to ../python3/examples/pubsub.py RefactoringTool: Refactored ../python3/examples/demo_hiredis.py RefactoringTool: Refactored ../python3/examples/demo.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/txredis/tests/test_hiredis.py RefactoringTool: ../python3/txredis/tests/test_client.py RefactoringTool: ../python3/txredis/testing.py RefactoringTool: ../python3/txredis/protocol.py RefactoringTool: ../python3/txredis/exceptions.py RefactoringTool: ../python3/txredis/client.py RefactoringTool: ../python3/txredis/__init__.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/examples/pubsub.py RefactoringTool: ../python3/examples/demo_hiredis.py RefactoringTool: ../python3/examples/demo.py == u"pmessage": + elif reply[0] == "pmessage": pattern, channel, message = reply[1:] self.messageReceived(channel, message) - elif reply[0] == u"subscribe": + elif reply[0] == "subscribe": channel, numSubscribed = reply[1:] self.channelSubscribed(channel, numSubscribed) - elif reply[0] == u"unsubscribe": + elif reply[0] == "unsubscribe": channel, numSubscribed = reply[1:] self.channelUnsubscribed(channel, numSubscribed) - elif reply[0] == u"psubscribe": + elif reply[0] == "psubscribe": channelPattern, numSubscribed = reply[1:] self.channelPatternSubscribed(channelPattern, numSubscribed) - elif reply[0] == u"punsubscribe": + elif reply[0] == "punsubscribe": channelPattern, numSubscribed = reply[1:] self.channelPatternUnsubscribed(channelPattern, numSubscribed) else: --- ../python3/txredis/__init__.py (original) +++ ../python3/txredis/__init__.py (refactored) @@ -35,6 +35,6 @@ @brief Twisted compatible version of redis.py """ # for backwards compatibility -from client import * -from exceptions import * -from protocol import * +from .client import * +from .exceptions import * +from .protocol import * --- ../python3/examples/demo_hiredis.py (original) +++ ../python3/examples/demo_hiredis.py (refactored) @@ -15,16 +15,16 @@ redis = yield clientCreator.connectTCP(HOST, PORT) res = yield redis.ping() - print res + print(res) info = yield redis.info() - print info + print(info) res = yield redis.set('test', 42) - print res + print(res) test = yield redis.get('test') - print test + print(test) if __name__ == "__main__": main() --- ../python3/examples/demo.py (original) +++ ../python3/examples/demo.py (refactored) @@ -15,16 +15,16 @@ redis = yield clientCreator.connectTCP(HOST, PORT) res = yield redis.ping() - print res + print(res) info = yield redis.info() - print info + print(info) res = yield redis.set('test', 42) - print res + print(res) test = yield redis.get('test') - print test + print(test) if __name__ == "__main__": main() + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.83218 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredis-2.3 + 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 creating build/lib/txredis copying txredis/testing.py -> build/lib/txredis copying txredis/protocol.py -> build/lib/txredis copying txredis/exceptions.py -> build/lib/txredis copying txredis/client.py -> build/lib/txredis copying txredis/__init__.py -> build/lib/txredis + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/txredis-2.3 + 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 creating build/lib/txredis copying txredis/testing.py -> build/lib/txredis copying txredis/protocol.py -> build/lib/txredis copying txredis/exceptions.py -> build/lib/txredis copying txredis/client.py -> build/lib/txredis copying txredis/__init__.py -> build/lib/txredis + popd ~/RPM/BUILD/txredis-2.3 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.11760 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-txredis-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-txredis-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd txredis-2.3 + mkdir -p /usr/src/tmp/python-module-txredis-buildroot//etc/bash_completion.d + 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-txredis-buildroot --force --record=INSTALLED_FILES running install running install_lib creating /usr/src/tmp/python-module-txredis-buildroot/usr creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis copying build/lib/txredis/__init__.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis copying build/lib/txredis/client.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis copying build/lib/txredis/exceptions.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis copying build/lib/txredis/protocol.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis copying build/lib/txredis/testing.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py to client.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/exceptions.py to exceptions.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/protocol.py to protocol.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/testing.py to testing.pyc running install_egg_info running egg_info writing txredis.egg-info/PKG-INFO writing top-level names to txredis.egg-info/top_level.txt writing dependency_links to txredis.egg-info/dependency_links.txt reading manifest file 'txredis.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'txredis.egg-info/SOURCES.txt' Copying txredis.egg-info to /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis-2.3-py2.7.egg-info running install_scripts writing list of installed files to 'INSTALLED_FILES' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/txredis-2.3 + 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-txredis-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis copying build/lib/txredis/__init__.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis copying build/lib/txredis/client.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis copying build/lib/txredis/exceptions.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis copying build/lib/txredis/protocol.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis copying build/lib/txredis/testing.py -> /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py to client.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/exceptions.py to exceptions.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/protocol.py to protocol.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/testing.py to testing.cpython-37.pyc running install_egg_info running egg_info writing txredis.egg-info/PKG-INFO writing dependency_links to txredis.egg-info/dependency_links.txt writing top-level names to txredis.egg-info/top_level.txt reading manifest file 'txredis.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'txredis.egg-info/SOURCES.txt' Copying txredis.egg-info to /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info running install_scripts + popd ~/RPM/BUILD/txredis-2.3 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-txredis-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-txredis-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python-module-txredis-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-txredis-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-txredis-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-txredis-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-txredis-buildroot using /usr/bin/python2.7 unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/exceptions.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/protocol.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/testing.pyc compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/exceptions.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/protocol.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/testing.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-txredis-buildroot using /usr/bin/python2.7 -O compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/exceptions.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/protocol.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/testing.py Bytecompiling python3 modules in /usr/src/tmp/python-module-txredis-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.pyc unlink /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.pyc compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/exceptions.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/protocol.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/testing.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-txredis-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/exceptions.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/protocol.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/testing.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-txredis-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/exceptions.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/protocol.py compile /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/testing.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.pyc' './usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.pyc' './usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.pyc' './usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/txredis/testing.pyo' => './usr/lib/python2.7/site-packages/txredis/testing.pyc' './usr/lib/python2.7/site-packages/txredis/protocol.pyo' => './usr/lib/python2.7/site-packages/txredis/protocol.pyc' './usr/lib/python2.7/site-packages/txredis/exceptions.pyo' => './usr/lib/python2.7/site-packages/txredis/exceptions.pyc' './usr/lib/python2.7/site-packages/txredis/__init__.pyo' => './usr/lib/python2.7/site-packages/txredis/__init__.pyc' Processing files: python-module-txredis-2.3-alt1.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.77696 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredis-2.3 + DOCDIR=/usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + export DOCDIR + rm -rf /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + /bin/mkdir -p /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + cp -prL LICENSE.txt README.rst /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + chmod -R go-w /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + chmod -R a+rX /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python-module-txredis-2.3 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.hgk6WE 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.w1MgrI find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py: hiding client, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py: hiding exceptions, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/__init__.py: hiding protocol, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py: line=10 IGNORE (for REQ=slight and deep=8) module=hiredis python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py: hiding txredis, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py: hiding txredis, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/client.py: line=1593 IGNORE (for REQ=slight and deep=11) module=twisted python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/protocol.py: hiding txredis, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python2.7/site-packages/txredis/testing.py: hiding txredis, which SEEMS TO BE SELF-SATISFIED Provides: python2.7-module-txredis = 2.3-alt1, python2.7(txredis), python2.7(txredis.client), python2.7(txredis.exceptions), python2.7(txredis.protocol), python2.7(txredis.testing) Requires: python = 2.7, /usr/lib/python2.7/site-packages, python-modules, python2.7(twisted) Processing files: python3-module-txredis-2.3-alt1.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.79703 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd txredis-2.3 + DOCDIR=/usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + export DOCDIR + rm -rf /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + /bin/mkdir -p /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + cp -prL LICENSE.txt README.rst /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + chmod -R go-w /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + chmod -R a+rX /usr/src/tmp/python-module-txredis-buildroot/usr/share/doc/python3-module-txredis-2.3 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.X5jRZ2 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.HGElb4 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-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py: line=38 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py: line=39 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/__init__.py: line=40 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py: skipping itertools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py: line=10 IGNORE (for REQ=slight and deep=8) module=hiredis /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-txredis-buildroot/usr/lib/python3/site-packages/txredis/client.py: line=1593 IGNORE (for REQ=slight and deep=11) module=twisted.internet Provides: python3(txredis), python3(txredis.client), python3(txredis.exceptions), python3(txredis.protocol), python3(txredis.testing) Requires: python3(twisted.trial) < 0, /usr/lib/python3/site-packages, python3(collections) < 0, python3(twisted.internet) < 0, python3(twisted.internet.protocol) < 0, python3(twisted.protocols) < 0 warning: Installed (but unpackaged) file(s) found: /usr/lib/python2.7/site-packages/txredis/__init__.pyo /usr/lib/python2.7/site-packages/txredis/client.pyo /usr/lib/python2.7/site-packages/txredis/exceptions.pyo /usr/lib/python2.7/site-packages/txredis/protocol.pyo /usr/lib/python2.7/site-packages/txredis/testing.pyo Wrote: /usr/src/RPM/RPMS/noarch/python-module-txredis-2.3-alt1.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-txredis-2.3-alt1.1.2.noarch.rpm (w2.lzdio) 22.44user 1.62system 0:28.20elapsed 85%CPU (0avgtext+0avgdata 30316maxresident)k 0inputs+0outputs (0major+228851minor)pagefaults 0swaps 35.97user 8.09system 0:47.99elapsed 91%CPU (0avgtext+0avgdata 118212maxresident)k 0inputs+0outputs (0major+665764minor)pagefaults 0swaps --- python-module-txredis-2.3-alt1.1.2.noarch.rpm.repo 2018-05-22 16:51:36.000000000 +0000 +++ python-module-txredis-2.3-alt1.1.2.noarch.rpm.hasher 2021-08-01 10:33:15.079272145 +0000 @@ -40,3 +40,3 @@ File: /usr/lib/python2.7/site-packages/txredis/protocol.py 100644 root:root 3df50466b2536b29b680de9d6eb6d973 -File: /usr/lib/python2.7/site-packages/txredis/protocol.pyc 100644 root:root 2da0769d209dd9141d22eb0e7875cf31 +File: /usr/lib/python2.7/site-packages/txredis/protocol.pyc 100644 root:root b89a65c5f42f72a1d2569a59f1aa9266 File: /usr/lib/python2.7/site-packages/txredis/testing.py 100644 root:root 43f96ae159714548cdac8bf6a6c0813f @@ -46,2 +46,2 @@ File: /usr/share/doc/python-module-txredis-2.3/README.rst 100644 root:root 553e433f297ce9709814c122c2eaccc9 -RPMIdentity: f3dc04bc3364aecf02a0f95bf44d1b8609e385c8115d89fa17cc912ae1e82b6efa19d49922abfe75f392502aa9a1add06a5c63310a9f23e92936b7867aba8398 +RPMIdentity: a972cb91aae41835de47132f03ec848c20ccf54132fc0f45a930b894ecf1bf8bb24de0fff63740628da510698ca654eb5a9986c0dd018487c104252770842a4d --- python3-module-txredis-2.3-alt1.1.2.noarch.rpm.repo 2018-05-22 16:51:36.000000000 +0000 +++ python3-module-txredis-2.3-alt1.1.2.noarch.rpm.hasher 2021-08-01 10:33:15.230266870 +0000 @@ -1,24 +1,24 @@ /usr/lib/python3/site-packages/txredis 40755 root:root -/usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info 40755 root:root -/usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/PKG-INFO 100644 root:root -/usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/SOURCES.txt 100644 root:root -/usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/dependency_links.txt 100644 root:root -/usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/top_level.txt 100644 root:root +/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info 40755 root:root +/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/PKG-INFO 100644 root:root +/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/SOURCES.txt 100644 root:root +/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/dependency_links.txt 100644 root:root +/usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/top_level.txt 100644 root:root /usr/lib/python3/site-packages/txredis/__init__.py 100644 root:root /usr/lib/python3/site-packages/txredis/__pycache__ 40755 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.pyc 100644 root:root /usr/lib/python3/site-packages/txredis/client.py 100644 root:root @@ -44,24 +44,24 @@ File: /usr/lib/python3/site-packages/txredis 40755 root:root -File: /usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info 40755 root:root -File: /usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/PKG-INFO 100644 root:root 318c96e2d1852d9a725f4e87d423c8e8 -File: /usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/SOURCES.txt 100644 root:root e3e67b3c6b291e418103e818129cdcc6 -File: /usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/dependency_links.txt 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 -File: /usr/lib/python3/site-packages/txredis-2.3-py3.6.egg-info/top_level.txt 100644 root:root 6da41d144f39c823e7d20dd961dd98e7 +File: /usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info 40755 root:root +File: /usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/PKG-INFO 100644 root:root 318c96e2d1852d9a725f4e87d423c8e8 +File: /usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/SOURCES.txt 100644 root:root e3e67b3c6b291e418103e818129cdcc6 +File: /usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/dependency_links.txt 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 +File: /usr/lib/python3/site-packages/txredis-2.3-py3.7.egg-info/top_level.txt 100644 root:root 6da41d144f39c823e7d20dd961dd98e7 File: /usr/lib/python3/site-packages/txredis/__init__.py 100644 root:root 78e75718dbdb61e140a761560d458d78 File: /usr/lib/python3/site-packages/txredis/__pycache__ 40755 root:root -File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.opt-1.pyc 100644 root:root 3fbc89f4237e593189f82221608803d6 -File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.opt-2.pyc 100644 root:root cf336aea01812ffe4c31b6d7f7efa7e1 -File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-36.pyc 100644 root:root 3fbc89f4237e593189f82221608803d6 -File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.opt-1.pyc 100644 root:root 0e696d88df15ed2360855759007523d7 -File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.opt-2.pyc 100644 root:root f87f29b51e03b992b31b6f2f11c494dd -File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-36.pyc 100644 root:root dfb16581af6aa32eb1f3cabf59bb7430 -File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.opt-1.pyc 100644 root:root 59d554e80e246431890ee50562c89d8f -File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.opt-2.pyc 100644 root:root 73376c689f7ad4ca0451ce981bd3433f -File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-36.pyc 100644 root:root 59d554e80e246431890ee50562c89d8f -File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.opt-1.pyc 100644 root:root 525879e3bbd2fd603b859e37c41f728a -File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.opt-2.pyc 100644 root:root 0ac7c73dfa0d2c90ce9fa45df566d976 -File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-36.pyc 100644 root:root 525879e3bbd2fd603b859e37c41f728a -File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.opt-1.pyc 100644 root:root 48ec04178d412670abcb2e1b92e8a182 -File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.opt-2.pyc 100644 root:root 591a58688a967ac39989c43099abdc76 -File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-36.pyc 100644 root:root 48ec04178d412670abcb2e1b92e8a182 +File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.opt-1.pyc 100644 root:root ba122331b34fa37b8b3b7c294583de45 +File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.opt-2.pyc 100644 root:root f23b706bdd020c03359c76340c0a29d7 +File: /usr/lib/python3/site-packages/txredis/__pycache__/__init__.cpython-37.pyc 100644 root:root ba122331b34fa37b8b3b7c294583de45 +File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.opt-1.pyc 100644 root:root 0c744dfcadc2988b33a3c2dbd8bba519 +File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.opt-2.pyc 100644 root:root 8f5a34495fa3d2bcc6e8f5d047b8e664 +File: /usr/lib/python3/site-packages/txredis/__pycache__/client.cpython-37.pyc 100644 root:root d932ce5121ec53ef68f74f312d7d7f59 +File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.opt-1.pyc 100644 root:root 042dc6e17826381290428832f581848f +File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.opt-2.pyc 100644 root:root 819e8a327a5647cdf5f02b248997f3d8 +File: /usr/lib/python3/site-packages/txredis/__pycache__/exceptions.cpython-37.pyc 100644 root:root 042dc6e17826381290428832f581848f +File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.opt-1.pyc 100644 root:root 95f03696f8b9ca3ed18ecd2c70ba8691 +File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.opt-2.pyc 100644 root:root f15470ec79de94ea048e2e623e5b7675 +File: /usr/lib/python3/site-packages/txredis/__pycache__/protocol.cpython-37.pyc 100644 root:root 95f03696f8b9ca3ed18ecd2c70ba8691 +File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.opt-1.pyc 100644 root:root c50e12de6a62b4ea89d1133127fea031 +File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.opt-2.pyc 100644 root:root 742a18a44d0b7dbcdc9d5546cfc17dd4 +File: /usr/lib/python3/site-packages/txredis/__pycache__/testing.cpython-37.pyc 100644 root:root c50e12de6a62b4ea89d1133127fea031 File: /usr/lib/python3/site-packages/txredis/client.py 100644 root:root bdca9d2b40a901f93a9df0de0e9cc4b3 @@ -73,2 +73,2 @@ File: /usr/share/doc/python3-module-txredis-2.3/README.rst 100644 root:root 553e433f297ce9709814c122c2eaccc9 -RPMIdentity: ae1e9ee737ec3c94a7bcfcc9ae7c12ca5af0f54af317d45bfcca1661c63fceeb3abc3d67ef1ab64869294db3fa24af65cea29b4c54ebb55de3c390768cb04eaa +RPMIdentity: e59cb93e6882fdcbd0b99e0d2cea796407a29f1efbb8b892a6c896ef6e31b9bac362428b86bef86abf6a9ffee3e81a3663a40b1c4829482dbe373dd1959c0d05