<86>Feb 28 04:30:03 userdel[1239485]: delete user 'rooter' <86>Feb 28 04:30:03 userdel[1239485]: removed group 'rooter' owned by 'rooter' <86>Feb 28 04:30:03 userdel[1239485]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 28 04:30:03 groupadd[1239495]: group added to /etc/group: name=rooter, GID=699 <86>Feb 28 04:30:03 groupadd[1239495]: group added to /etc/gshadow: name=rooter <86>Feb 28 04:30:03 groupadd[1239495]: new group: name=rooter, GID=699 <86>Feb 28 04:30:03 useradd[1239508]: new user: name=rooter, UID=699, GID=699, home=/root, shell=/bin/bash <86>Feb 28 04:30:03 userdel[1239524]: delete user 'builder' <86>Feb 28 04:30:03 userdel[1239524]: removed group 'builder' owned by 'builder' <86>Feb 28 04:30:03 userdel[1239524]: removed shadow group 'builder' owned by 'builder' <86>Feb 28 04:30:03 groupadd[1239542]: group added to /etc/group: name=builder, GID=700 <86>Feb 28 04:30:03 groupadd[1239542]: group added to /etc/gshadow: name=builder <86>Feb 28 04:30:03 groupadd[1239542]: new group: name=builder, GID=700 <86>Feb 28 04:30:03 useradd[1239569]: new user: name=builder, UID=700, GID=700, home=/usr/src, shell=/bin/bash <13>Feb 28 04:30:06 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Feb 28 04:30:06 rpmi: libexpat-2.2.4-alt1 1503305341 installed <13>Feb 28 04:30:06 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Feb 28 04:30:06 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825069 installed <13>Feb 28 04:30:06 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 28 04:30:06 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 28 04:30:06 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Feb 28 04:30:06 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Feb 28 04:30:06 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Feb 28 04:30:06 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Feb 28 04:30:06 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Feb 28 04:30:06 rpmi: python3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 28 04:30:07 rpmi: libpython3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 28 04:30:07 rpmi: python3-base-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 28 04:30:07 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Feb 28 04:30:07 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Feb 28 04:30:10 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Feb 28 04:30:10 rpmi: python3-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Feb 28 04:30:10 rpmi: python3-module-zope.interface-4.7.1-alt1 sisyphus+243962.100.1.1 1578571048 installed <13>Feb 28 04:30:10 rpmi: python3-module-attrs-19.3.0-alt1 sisyphus+240796.100.1.1 1573741715 installed <13>Feb 28 04:30:10 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Feb 28 04:30:10 rpmi: python3-module-hyperlink-19.0.0-alt1 sisyphus+231791.100.1.1 1560104463 installed <13>Feb 28 04:30:10 rpmi: python3-module-hamcrest-2.0.0-alt4.a1.git20150729 sisyphus+235493.2300.6.1 1565442379 installed <13>Feb 28 04:30:10 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Feb 28 04:30:10 rpmi: scons-3.1.1-alt2 sisyphus+242341.100.1.1 1575542405 installed <13>Feb 28 04:30:10 rpmi: python3-module-pycares-2.3.0-alt1.1 sisyphus+225625.36700.91.1 1555333176 installed <13>Feb 28 04:30:10 rpmi: python3-module-certifi-2019.11.28-alt1 sisyphus+242017.100.1.1 1575039000 installed <13>Feb 28 04:30:11 rpmi: python3-module-click-7.0-alt1 sisyphus+233553.200.1.1 1561975479 installed <13>Feb 28 04:30:11 rpmi: python3-module-incremental-17.5.0-alt3 sisyphus+225625.45700.91.1 1555360824 installed <13>Feb 28 04:30:11 rpmi: python3-module-pyasn1-0.4.8-alt1 sisyphus+241541.100.2.1 1574620393 installed <13>Feb 28 04:30:11 rpmi: python3-module-pycryptodome-3.9.4-alt1 sisyphus+242606.100.1.1 1575902090 installed <13>Feb 28 04:30:11 rpmi: python3-module-constantly-15.1.0-alt5.qa1 sisyphus+228353.1600.3.1 1556554115 installed <13>Feb 28 04:30:11 rpmi: python3-module-priority-1.3.0-alt1.qa1 sisyphus+228365.500.1.1 1556564499 installed <13>Feb 28 04:30:11 rpmi: python3-module-hyperframe-5.2.0-alt1 sisyphus+231788.100.1.1 1560100609 installed <13>Feb 28 04:30:11 rpmi: python3-module-hpack-3.0.0-alt1.qa1 sisyphus+227493.500.1.3 1555835217 installed <13>Feb 28 04:30:11 rpmi: python3-module-h2-3.0.1-alt3 sisyphus+235493.2200.6.1 1565442274 installed <13>Feb 28 04:30:11 rpmi: python3-module-z3c-3.0.0-alt3 sisyphus+220440.100.1.1 1549119447 installed <13>Feb 28 04:30:11 rpmi: python3-module-zc-1.0.0-alt6.2 1458024144 installed <13>Feb 28 04:30:11 rpmi: python3-module-zope-3.3.0-alt8.5 sisyphus+225625.33400.91.1 1555315201 installed <13>Feb 28 04:30:11 rpmi: python3-module-serial-3.4-alt1 1508504506 installed <13>Feb 28 04:30:11 rpmi: python3-module-pygobject-2.28.6-alt10.1.1.1 sisyphus+225625.41000.91.1 1555339070 installed <13>Feb 28 04:30:11 rpmi: python3-module-appdirs-1.4.3-alt2 sisyphus+246664.100.1.1 1582182741 installed <13>Feb 28 04:30:11 rpmi: python3-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Feb 28 04:30:11 rpmi: python3-module-pyparsing-2.4.2-alt1 sisyphus+236061.100.3.1 1565853577 installed <13>Feb 28 04:30:11 rpmi: python3-module-packaging-19.0-alt2 sisyphus+235493.3500.8.1 1565461874 installed <13>Feb 28 04:30:11 rpmi: python3-module-markupsafe-0.23-alt1.2.1.1 sisyphus+225625.12200.91.1 1555290677 installed <13>Feb 28 04:30:11 rpmi: python3-module-jinja2-2.10.3-alt1 sisyphus+241982.100.1.1 1575023523 installed <13>Feb 28 04:30:11 rpmi: python3-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Feb 28 04:30:11 rpmi: python3-module-pytz-1:2019.3-alt1 sisyphus+242012.100.2.1 1575623104 installed <13>Feb 28 04:30:11 rpmi: python3-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Feb 28 04:30:11 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Feb 28 04:30:11 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Feb 28 04:30:11 rpmi: python3-module-webencodings-0.5.1-alt2 sisyphus+245915.200.1.1 1581496105 installed <13>Feb 28 04:30:11 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847321 installed <13>Feb 28 04:30:11 rpmi: python3-module-pycparser-2.19-alt2 sisyphus+245734.100.1.1 1581192421 installed <13>Feb 28 04:30:11 rpmi: python3-module-cffi-1.13.2-alt1 sisyphus+240882.100.2.1 1573892830 installed <13>Feb 28 04:30:11 rpmi: python3-module-cryptography-2.8-alt1 sisyphus+239390.100.1.2 1571349409 installed <13>Feb 28 04:30:11 rpmi: python3-module-OpenSSL-19.0.0-alt1 sisyphus+238757.100.1.1 1570339901 installed <13>Feb 28 04:30:11 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Feb 28 04:30:11 rpmi: python3-module-urllib3-2:1.25.6-alt1 sisyphus+238720.100.2.1 1570349439 installed <13>Feb 28 04:30:11 rpmi: python3-module-requests-2.22.0-alt1 sisyphus+238756.100.1.1 1570338316 installed <13>Feb 28 04:30:11 rpmi: python-sphinx-objects.inv-1:2.3.9.20200226-alt1 sisyphus+247070.100.1.1 1582776513 installed <13>Feb 28 04:30:11 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Feb 28 04:30:11 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Feb 28 04:30:11 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Feb 28 04:30:11 rpmi: python3-dev-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 28 04:30:11 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Feb 28 04:30:11 rpmi: python3-module-twisted-runner-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-logger-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-web-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-conch-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-names-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-pair-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-positioning-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-core-test-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-words-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-automat-0.7.0-alt1 sisyphus+233511.100.1.1 1561912741 installed <13>Feb 28 04:30:12 rpmi: python3-module-twisted-core-18.9.0-alt1 sisyphus+225625.46000.91.1 1555361504 installed <13>Feb 28 04:30:12 rpmi: python3-module-tornado-5.1.1-alt2 sisyphus+225625.16600.91.1 1555293997 installed <13>Feb 28 04:30:12 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Feb 28 04:30:12 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521088 installed <13>Feb 28 04:30:12 rpmi: libgcrypt20-1.8.5-alt3 sisyphus+239622.100.1.1 1571746563 installed <13>Feb 28 04:30:12 rpmi: libxslt-1.1.34-alt1 sisyphus+240826.100.1.1 1573801838 installed <13>Feb 28 04:30:12 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Feb 28 04:30:12 rpmi: python3-module-html5lib-1:1.0.1-alt1 sisyphus+238807.100.2.1 1570465973 installed <13>Feb 28 04:30:12 rpmi: python3-module-lxml-4.4.2-alt1 sisyphus+243954.100.1.1 1578563726 installed <13>Feb 28 04:30:12 rpmi: python3-module-docutils-0.15.2-alt1 sisyphus+239215.200.1.1 1576583082 installed <13>Feb 28 04:30:12 rpmi: python3-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Feb 28 04:30:12 rpmi: python3-module-sphinxcontrib-applehelp-1.0.1-alt1 sisyphus+228217.100.1.1 1556282506 installed <13>Feb 28 04:30:12 rpmi: python3-module-sphinxcontrib-devhelp-1.0.1-alt1 sisyphus+228218.100.1.1 1556283262 installed <13>Feb 28 04:30:12 rpmi: python3-module-sphinxcontrib-htmlhelp-1.0.2-alt1 sisyphus+228401.100.1.1 1556572721 installed <13>Feb 28 04:30:12 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt1 sisyphus+238085.500.1.1 1569313099 installed <13>Feb 28 04:30:13 rpmi: python3-module-sphinxcontrib-qthelp-1.0.2-alt1 sisyphus+228215.100.1.1 1556282300 installed <13>Feb 28 04:30:13 rpmi: python3-module-sphinxcontrib-serializinghtml-1.1.3-alt1 sisyphus+228216.100.1.1 1556282403 installed <13>Feb 28 04:30:13 rpmi: python3-module-sphinx-1:2.2.0-alt3 sisyphus+238476.100.2.1 1569998637 installed <13>Feb 28 04:30:13 rpmi: python3-module-Pygments-2.4.2-alt2 sisyphus+245852.1100.2.1 1581424681 installed <13>Feb 28 04:30:13 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Feb 28 04:30:13 groupadd[1249408]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 28 04:30:13 groupadd[1249408]: group added to /etc/gshadow: name=_keytab <86>Feb 28 04:30:13 groupadd[1249408]: new group: name=_keytab, GID=499 <13>Feb 28 04:30:13 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137160 installed <13>Feb 28 04:30:13 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Feb 28 04:30:13 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Feb 28 04:30:13 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 28 04:30:13 rpmi: python3-module-thrift-0.11.0-alt1 sisyphus+237451.1000.2.1 1568395214 installed <13>Feb 28 04:30:13 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-happybase-0.8-alt3.nosrc.rpm Installing python3-module-happybase-0.8-alt3.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.18640 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-happybase-0.8 + echo 'Source #0 (python3-module-happybase-0.8.tar):' Source #0 (python3-module-happybase-0.8.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-happybase-0.8.tar + cd python3-module-happybase-0.8 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (port-on-python3.patch):' Patch #0 (port-on-python3.patch): + /usr/bin/patch -p1 patching file doc/conf.py patching file setup.py + find -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 ./setup.py RefactoringTool: No changes to ./tests/test_util.py RefactoringTool: Refactored ./tests/test_api.py RefactoringTool: Refactored ./happybase/util.py --- ./tests/test_api.py (original) +++ ./tests/test_api.py (refactored) @@ -49,7 +49,7 @@ return if TEST_TABLE_NAME in connection.tables(): - print "Test table already exists; removing it..." + print("Test table already exists; removing it...") connection.delete_table(TEST_TABLE_NAME, disable=True) @@ -147,8 +147,8 @@ def test_families(): families = table.families() - for name, fdesc in families.iteritems(): - assert_is_instance(name, basestring) + for name, fdesc in families.items(): + assert_is_instance(name, str) assert_is_instance(fdesc, dict) assert_in('name', fdesc) assert_in('max_versions', fdesc) @@ -157,7 +157,7 @@ def test_put(): table.put('r1', {'cf1:c1': 'v1', 'cf1:c2': 'v2', 'cf2:c3': 'v3'}) table.put('r1', {'cf1:c4': 'v2'}, timestamp=2345678) - table.put('r1', {'cf1:c4': 'v2'}, timestamp=1369168852994L) + table.put('r1', {'cf1:c4': 'v2'}, timestamp=1369168852994) def test_atomic_counters(): @@ -234,16 +234,16 @@ assert_dict_equal({'cf1:bar': 'baz'}, table.row('fooz', ['cf1:bar'])) with table.batch(batch_size=5) as b: - for i in xrange(10): + for i in range(10): b.put('row-batch1-%03d' % i, {'cf1:': str(i)}) with table.batch(batch_size=20) as b: - for i in xrange(95): + for i in range(95): b.put('row-batch2-%03d' % i, {'cf1:': str(i)}) assert_equal(95, len(list(table.scan(row_prefix='row-batch2-')))) with table.batch(batch_size=20) as b: - for i in xrange(95): + for i in range(95): b.delete('row-batch2-%03d' % i) assert_equal(0, len(list(table.scan(row_prefix='row-batch2-')))) @@ -433,7 +433,7 @@ return # not supported input_row = {} - for i in xrange(100): + for i in range(100): input_row['cf1:col-%03d' % i] = '' input_key = 'row-scan-sorted' table.put(input_key, input_row) @@ -443,14 +443,14 @@ assert_equal(key, input_key) assert_list_equal( sorted(input_row.items()), - row.items()) + list(row.items())) def test_scan_filter_and_batch_size(): # See issue #54 and #56 filter = "SingleColumnValueFilter ('cf1', 'qual1', =, 'binary:val1')" for k, v in table.scan(filter=filter): - print v + print(v) def test_delete(): @@ -494,7 +494,7 @@ def run(): name = threading.current_thread().name - print "Thread %s starting" % name + print("Thread %s starting" % name) def inner_function(): # Nested connection requests must return the same connection @@ -503,11 +503,11 @@ # Fake an exception once in a while if random.random() < .25: - print "Introducing random failure" + print("Introducing random failure") connection.transport.close() raise TTransportException("Fake transport exception") - for i in xrange(50): + for i in range(50): with pool.connection() as connection: connection.tables() @@ -521,12 +521,12 @@ connection.tables() - print "Thread %s done" % name + print("Thread %s done" % name) N_THREADS = 10 pool = ConnectionPool(size=3, **connection_kwargs) - threads = [threading.Thread(target=run) for i in xrange(N_THREADS)] + threads = [threading.Thread(target=run) for i in range(N_THREADS)] for t in threads: t.start() @@ -537,7 +537,7 @@ # filter out finished threads threads = [t for t in threads if t.is_alive()] - print "%d threads still alive" % len(threads) + print("%d threads still alive" % len(threads)) def test_pool_exhaustion(): --- ./happybase/util.py (original) +++ ./happybase/util.py (refactored) @@ -64,7 +64,7 @@ drops everything after it. If the string only contains ``0xFF`` bytes, `None` is returned. """ - for i in xrangeRefactoringTool: Refactored ./happybase/table.py RefactoringTool: Refactored ./happybase/pool.py RefactoringTool: Refactored ./happybase/hbase/ttypes.py (len(s) - 1, -1, -1): + for i in range(len(s) - 1, -1, -1): if s[i] != '\xff': return s[:i] + chr(ord(s[i]) + 1) --- ./happybase/table.py (original) +++ ./happybase/table.py (refactored) @@ -21,7 +21,7 @@ def make_row(cell_map, include_timestamp): """Make a row dict for a cell mapping like ttypes.TRowResult.columns.""" cellfn = include_timestamp and make_cell_timestamp or make_cell - return dict((cn, cellfn(cell)) for cn, cell in cell_map.iteritems()) + return dict((cn, cellfn(cell)) for cn, cell in cell_map.items()) def make_ordered_row(sorted_columns, include_timestamp): @@ -57,14 +57,14 @@ """ descriptors = self.connection.client.getColumnDescriptors(self.name) families = dict() - for name, descriptor in descriptors.items(): + for name, descriptor in list(descriptors.items()): name = name.rstrip(':') families[name] = thrift_type_to_dict(descriptor) return families def _column_family_names(self): """Retrieve the column family names for this table (internal use)""" - names = self.connection.client.getColumnDescriptors(self.name).keys() + names = list(self.connection.client.getColumnDescriptors(self.name).keys()) return [name.rstrip(':') for name in names] def regions(self): @@ -74,7 +74,7 @@ :rtype: list of dicts """ regions = self.connection.client.getTableRegions(self.name) - return map(thrift_type_to_dict, regions) + return list(map(thrift_type_to_dict, regions)) # # Data retrieval @@ -208,9 +208,9 @@ self.name, row, column, timestamp, versions, {}) if include_timestamp: - return map(make_cell_timestamp, cells) + return list(map(make_cell_timestamp, cells)) else: - return map(make_cell, cells) + return list(map(make_cell, cells)) def scan(self, row_start=None, row_stop=None, row_prefix=None, columns=None, filter=None, timestamp=None, --- ./happybase/pool.py (original) +++ ./happybase/pool.py (refactored) @@ -4,7 +4,7 @@ import contextlib import logging -import Queue +import queue import socket import threading @@ -61,13 +61,13 @@ "Initializing connection pool with %d connections", size) self._lock = threading.Lock() - self._queue = Queue.LifoQueue(maxsize=size) + self._queue = queue.LifoQueue(maxsize=size) self._thread_connections = threading.local() connection_kwargs = kwargs connection_kwargs['autoconnect'] = False - for i in xrange(size): + for i in range(size): connection = Connection(**connection_kwargs) self._queue.put(connection) @@ -81,7 +81,7 @@ """Acquire a connection from the pool.""" try: return self._queue.get(True, timeout) - except Queue.Empty: + except queue.Empty: raise NoConnectionsAvailable( "No connection available from pool within specified " "timeout") --- ./happybase/hbase/ttypes.py (original) +++ ./happybase/hbase/ttypes.py (refactored) @@ -85,7 +85,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -245,7 +245,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -379,7 +379,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -477,7 +477,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -523,7 +523,7 @@ if ftype == TType.LIST: self.mutations = [] (_etype3, _size0) = iprot.readListBegin() - for _i4 in xrange(_size0): + for _i4 in range(_size0): _elem5 = Mutation() _elem5.read(iprot) self.mutations.append(_elem5) @@ -560,7 +560,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -659,7 +659,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -734,7 +734,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -783,7 +783,7 @@ if ftype == TType.MAP: self.columns = {} (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() - for _i11 in xrange(_size7): + for _i11 in range(_size7): _key12 = iprot.readString(); _val13 = TCell() _val13.read(iprot) @@ -795,7 +795,7 @@ if ftype == TType.LIST: self.sortedColumns = [] (_etype17, _size14) = iprot.readListBegin() - for _i18 in xrange(_size14): + for _i18 in range(_size14): _elem19 = TColumn() _elem19.read(iprot) self.sortedColumns.append(_elem19) @@ -819,7 +819,7 @@ if self.columns is not None: oprot.writeFieldBegin('columns', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.columns)) - for kiter20,viter21 in self.columns.items(): + for kiter20,viter21 in list(self.columns.items()): oprot.writeString(kiter20) viter21.write(oprot) oprot.writeMapEnd() @@ -840,7 +840,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -914,7 +914,7 @@ if ftype == TType.LIST: self.columns = [] (_etype26, _size23) = iprot.readListBegin() - for _i27 in xrange(_size23): + for _i27 in range(_size23): _elem28 = iprot.readString(); self.columns.append(_elem28) iprot.readListEnd() @@ -994,7 +994,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -1061,7 +1061,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -1127,7 +1127,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -1193,7 +1193,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(seRefactoringTool: Refactored ./happybase/hbase/constants.py RefactoringTool: No changes to ./happybase/hbase/__init__.py RefactoringTool: Refactored ./happybase/hbase/Hbase.py lf, other): --- ./happybase/hbase/constants.py (original) +++ ./happybase/hbase/constants.py (refactored) @@ -7,5 +7,5 @@ # from thrift.Thrift import TType, TMessageType, TException, TApplicationException -from ttypes import * +from .ttypes import * --- ./happybase/hbase/Hbase.py (original) +++ ./happybase/hbase/Hbase.py (refactored) @@ -7,7 +7,7 @@ # from thrift.Thrift import TType, TMessageType, TException, TApplicationException -from ttypes import * +from .ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol, TProtocol @@ -3100,7 +3100,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3161,7 +3161,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3221,7 +3221,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3282,7 +3282,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3342,7 +3342,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3414,7 +3414,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3474,7 +3474,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3535,7 +3535,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3595,7 +3595,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3656,7 +3656,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3698,7 +3698,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3736,7 +3736,7 @@ if ftype == TType.LIST: self.success = [] (_etype33, _size30) = iprot.readListBegin() - for _i34 in xrange(_size30): + for _i34 in range(_size30): _elem35 = iprot.readString(); self.success.append(_elem35) iprot.readListEnd() @@ -3778,7 +3778,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3838,7 +3838,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3876,7 +3876,7 @@ if ftype == TType.MAP: self.success = {} (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() - for _i41 in xrange(_size37): + for _i41 in range(_size37): _key42 = iprot.readString(); _val43 = ColumnDescriptor() _val43.read(iprot) @@ -3903,7 +3903,7 @@ if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter44,viter45 in self.success.items(): + for kiter44,viter45 in list(self.success.items()): oprot.writeString(kiter44) viter45.write(oprot) oprot.writeMapEnd() @@ -3921,7 +3921,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -3981,7 +3981,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4019,7 +4019,7 @@ if ftype == TType.LIST: self.success = [] (_etype49, _size46) = iprot.readListBegin() - for _i50 in xrange(_size46): + for _i50 in range(_size46): _elem51 = TRegionInfo() _elem51.read(iprot) self.success.append(_elem51) @@ -4062,7 +4062,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4106,7 +4106,7 @@ if ftype == TType.LIST: self.columnFamilies = [] (_etype56, _size53) = iprot.readListBegin() - for _i57 in xrange(_size53): + for _i57 in range(_size53): _elem58 = ColumnDescriptor() _elem58.read(iprot) self.columnFamilies.append(_elem58) @@ -4143,7 +4143,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4230,7 +4230,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4290,7 +4290,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4351,7 +4351,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4411,7 +4411,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype61, _vtype62, _size60 ) = iprot.readMapBegin() - for _i64 in xrange(_size60): + for _i64 in range(_size60): _key65 = iprot.readString(); _val66 = iprot.readString(); self.attributes[_key65] = _val66 @@ -4443,7 +4443,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter67,viter68 in self.attributes.items(): + for kiter67,viter68 in list(self.attributes.items()): oprot.writeString(kiter67) oprot.writeString(viter68) oprot.writeMapEnd() @@ -4457,7 +4457,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4495,7 +4495,7 @@ if ftype == TType.LIST: self.success = [] (_etype72, _size69) = iprot.readListBegin() - for _i73 in xrange(_size69): + for _i73 in range(_size69): _elem74 = TCell() _elem74.read(iprot) self.success.append(_elem74) @@ -4538,7 +4538,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4606,7 +4606,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype77, _vtype78, _size76 ) = iprot.readMapBegin() - for _i80 in xrange(_size76): + for _i80 in range(_size76): _key81 = iprot.readString(); _val82 = iprot.readString(); self.attributes[_key81] = _val82 @@ -4642,7 +4642,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter83,viter84 in self.attributes.items(): + for kiter83,viter84 in list(self.attributes.items()): oprot.writeString(kiter83) oprot.writeString(viter84) oprot.writeMapEnd() @@ -4656,7 +4656,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4694,7 +4694,7 @@ if ftype == TType.LIST: self.success = [] (_etype88, _size85) = iprot.readListBegin() - for _i89 in xrange(_size85): + for _i89 in range(_size85): _elem90 = TCell() _elem90.read(iprot) self.success.append(_elem90) @@ -4737,7 +4737,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4813,7 +4813,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() - for _i96 in xrange(_size92): + for _i96 in range(_size92): _key97 = iprot.readString(); _val98 = iprot.readString(); self.attributes[_key97] = _val98 @@ -4853,7 +4853,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter99,viter100 in self.attributes.items(): + for kiter99,viter100 in list(self.attributes.items()): oprot.writeString(kiter99) oprot.writeString(viter100) oprot.writeMapEnd() @@ -4867,7 +4867,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -4905,7 +4905,7 @@ if ftype == TType.LIST: self.success = [] (_etype104, _size101) = iprot.readListBegin() - for _i105 in xrange(_size101): + for _i105 in range(_size101): _elem106 = TCell() _elem106.read(iprot) self.success.append(_elem106) @@ -4948,7 +4948,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5000,7 +5000,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() - for _i112 in xrange(_size108): + for _i112 in range(_size108): _key113 = iprot.readString(); _val114 = iprot.readString(); self.attributes[_key113] = _val114 @@ -5028,7 +5028,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter115,viter116 in self.attributes.items(): + for kiter115,viter116 in list(self.attributes.items()): oprot.writeString(kiter115) oprot.writeString(viter116) oprot.writeMapEnd() @@ -5042,7 +5042,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5080,7 +5080,7 @@ if ftype == TType.LIST: self.success = [] (_etype120, _size117) = iprot.readListBegin() - for _i121 in xrange(_size117): + for _i121 in range(_size117): _elem122 = TRowResult() _elem122.read(iprot) self.success.append(_elem122) @@ -5123,7 +5123,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5178,7 +5178,7 @@ if ftype == TType.LIST: self.columns = [] (_etype127, _size124) = iprot.readListBegin() - for _i128 in xrange(_size124): + for _i128 in range(_size124): _elem129 = iprot.readString(); self.columns.append(_elem129) iprot.readListEnd() @@ -5188,7 +5188,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype131, _vtype132, _size130 ) = iprot.readMapBegin() - for _i134 in xrange(_size130): + for _i134 in range(_size130): _key135 = iprot.readString(); _val136 = iprot.readString(); self.attributes[_key135] = _val136 @@ -5223,7 +5223,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter138,viter139 in self.attributes.items(): + for kiter138,viter139 in list(self.attributes.items()): oprot.writeString(kiter138) oprot.writeString(viter139) oprot.writeMapEnd() @@ -5237,7 +5237,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5275,7 +5275,7 @@ if ftype == TType.LIST: self.success = [] (_etype143, _size140) = iprot.readListBegin() - for _i144 in xrange(_size140): + for _i144 in range(_size140): _elem145 = TRowResult() _elem145.read(iprot) self.success.append(_elem145) @@ -5318,7 +5318,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5378,7 +5378,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype148, _vtype149, _size147 ) = iprot.readMapBegin() - for _i151 in xrange(_size147): + for _i151 in range(_size147): _key152 = iprot.readString(); _val153 = iprot.readString(); self.attributes[_key152] = _val153 @@ -5410,7 +5410,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter154,viter155 in self.attributes.items(): + for kiter154,viter155 in list(self.attributes.items()): oprot.writeString(kiter154) oprot.writeString(viter155) oprot.writeMapEnd() @@ -5424,7 +5424,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5462,7 +5462,7 @@ if ftype == TType.LIST: self.success = [] (_etype159, _size156) = iprot.readListBegin() - for _i160 in xrange(_size156): + for _i160 in range(_size156): _elem161 = TRowResult() _elem161.read(iprot) self.success.append(_elem161) @@ -5505,7 +5505,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5563,7 +5563,7 @@ if ftype == TType.LIST: self.columns = [] (_etype166, _size163) = iprot.readListBegin() - for _i167 in xrange(_size163): + for _i167 in range(_size163): _elem168 = iprot.readString(); self.columns.append(_elem168) iprot.readListEnd() @@ -5578,7 +5578,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype170, _vtype171, _size169 ) = iprot.readMapBegin() - for _i173 in xrange(_size169): + for _i173 in range(_size169): _key174 = iprot.readString(); _val175 = iprot.readString(); self.attributes[_key174] = _val175 @@ -5617,7 +5617,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter177,viter178 in self.attributes.items(): + for kiter177,viter178 in list(self.attributes.items()): oprot.writeString(kiter177) oprot.writeString(viter178) oprot.writeMapEnd() @@ -5631,7 +5631,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5669,7 +5669,7 @@ if ftype == TType.LIST: self.success = [] (_etype182, _size179) = iprot.readListBegin() - for _i183 in xrange(_size179): + for _i183 in range(_size179): _elem184 = TRowResult() _elem184.read(iprot) self.success.append(_elem184) @@ -5712,7 +5712,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5759,7 +5759,7 @@ if ftype == TType.LIST: self.rows = [] (_etype189, _size186) = iprot.readListBegin() - for _i190 in xrange(_size186): + for _i190 in range(_size186): _elem191 = iprot.readString(); self.rows.append(_elem191) iprot.readListEnd() @@ -5769,7 +5769,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype193, _vtype194, _size192 ) = iprot.readMapBegin() - for _i196 in xrange(_size192): + for _i196 in range(_size192): _key197 = iprot.readString(); _val198 = iprot.readString(); self.attributes[_key197] = _val198 @@ -5800,7 +5800,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter200,viter201 in self.attributes.items(): + for kiter200,viter201 in list(self.attributes.items()): oprot.writeString(kiter200) oprot.writeString(viter201) oprot.writeMapEnd() @@ -5814,7 +5814,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5852,7 +5852,7 @@ if ftype == TType.LIST: self.success = [] (_etype205, _size202) = iprot.readListBegin() - for _i206 in xrange(_size202): + for _i206 in range(_size202): _elem207 = TRowResult() _elem207.read(iprot) self.success.append(_elem207) @@ -5895,7 +5895,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -5945,7 +5945,7 @@ if ftype == TType.LIST: self.rows = [] (_etype212, _size209) = iprot.readListBegin() - for _i213 in xrange(_size209): + for _i213 in range(_size209): _elem214 = iprot.readString(); self.rows.append(_elem214) iprot.readListEnd() @@ -5955,7 +5955,7 @@ if ftype == TType.LIST: self.columns = [] (_etype218, _size215) = iprot.readListBegin() - for _i219 in xrange(_size215): + for _i219 in range(_size215): _elem220 = iprot.readString(); self.columns.append(_elem220) iprot.readListEnd() @@ -5965,7 +5965,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype222, _vtype223, _size221 ) = iprot.readMapBegin() - for _i225 in xrange(_size221): + for _i225 in range(_size221): _key226 = iprot.readString(); _val227 = iprot.readString(); self.attributes[_key226] = _val227 @@ -6003,7 +6003,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter230,viter231 in self.attributes.items(): + for kiter230,viter231 in list(self.attributes.items()): oprot.writeString(kiter230) oprot.writeString(viter231) oprot.writeMapEnd() @@ -6017,7 +6017,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6055,7 +6055,7 @@ if ftype == TType.LIST: self.success = [] (_etype235, _size232) = iprot.readListBegin() - for _i236 in xrange(_size232): + for _i236 in range(_size232): _elem237 = TRowResult() _elem237.read(iprot) self.success.append(_elem237) @@ -6098,7 +6098,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6148,7 +6148,7 @@ if ftype == TType.LIST: self.rows = [] (_etype242, _size239) = iprot.readListBegin() - for _i243 in xrange(_size239): + for _i243 in range(_size239): _elem244 = iprot.readString(); self.rows.append(_elem244) iprot.readListEnd() @@ -6163,7 +6163,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype246, _vtype247, _size245 ) = iprot.readMapBegin() - for _i249 in xrange(_size245): + for _i249 in range(_size245): _key250 = iprot.readString(); _val251 = iprot.readString(); self.attributes[_key250] = _val251 @@ -6198,7 +6198,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter253,viter254 in self.attributes.items(): + for kiter253,viter254 in list(self.attributes.items()): oprot.writeString(kiter253) oprot.writeString(viter254) oprot.writeMapEnd() @@ -6212,7 +6212,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6250,7 +6250,7 @@ if ftype == TType.LIST: self.success = [] (_etype258, _size255) = iprot.readListBegin() - for _i259 in xrange(_size255): + for _i259 in range(_size255): _elem260 = TRowResult() _elem260.read(iprot) self.success.append(_elem260) @@ -6293,7 +6293,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6346,7 +6346,7 @@ if ftype == TType.LIST: self.rows = [] (_etype265, _size262) = iprot.readListBegin() - for _i266 in xrange(_size262): + for _i266 in range(_size262): _elem267 = iprot.readString(); self.rows.append(_elem267) iprot.readListEnd() @@ -6356,7 +6356,7 @@ if ftype == TType.LIST: self.columns = [] (_etype271, _size268) = iprot.readListBegin() - for _i272 in xrange(_size268): + for _i272 in range(_size268): _elem273 = iprot.readString(); self.columns.append(_elem273) iprot.readListEnd() @@ -6371,7 +6371,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype275, _vtype276, _size274 ) = iprot.readMapBegin() - for _i278 in xrange(_size274): + for _i278 in range(_size274): _key279 = iprot.readString(); _val280 = iprot.readString(); self.attributes[_key279] = _val280 @@ -6413,7 +6413,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter283,viter284 in self.attributes.items(): + for kiter283,viter284 in list(self.attributes.items()): oprot.writeString(kiter283) oprot.writeString(viter284) oprot.writeMapEnd() @@ -6427,7 +6427,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6465,7 +6465,7 @@ if ftype == TType.LIST: self.success = [] (_etype288, _size285) = iprot.readListBegin() - for _i289 in xrange(_size285): + for _i289 in range(_size285): _elem290 = TRowResult() _elem290.read(iprot) self.success.append(_elem290) @@ -6508,7 +6508,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6563,7 +6563,7 @@ if ftype == TType.LIST: self.mutations = [] (_etype295, _size292) = iprot.readListBegin() - for _i296 in xrange(_size292): + for _i296 in range(_size292): _elem297 = Mutation() _elem297.read(iprot) self.mutations.append(_elem297) @@ -6574,7 +6574,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype299, _vtype300, _size298 ) = iprot.readMapBegin() - for _i302 in xrange(_size298): + for _i302 in range(_size298): _key303 = iprot.readString(); _val304 = iprot.readString(); self.attributes[_key303] = _val304 @@ -6609,7 +6609,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter306,viter307 in self.attributes.items(): + for kiter306,viter307 in list(self.attributes.items()): oprot.writeString(kiter306) oprot.writeString(viter307) oprot.writeMapEnd() @@ -6623,7 +6623,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6697,7 +6697,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6755,7 +6755,7 @@ if ftype == TType.LIST: self.mutations = [] (_etype311, _size308) = iprot.readListBegin() - for _i312 in xrange(_size308): + for _i312 in range(_size308): _elem313 = Mutation() _elem313.read(iprot) self.mutations.append(_elem313) @@ -6771,7 +6771,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype315, _vtype316, _size314 ) = iprot.readMapBegin() - for _i318 in xrange(_size314): + for _i318 in range(_size314): _key319 = iprot.readString(); _val320 = iprot.readString(); self.attributes[_key319] = _val320 @@ -6810,7 +6810,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter322,viter323 in self.attributes.items(): + for kiter322,viter323 in list(self.attributes.items()): oprot.writeString(kiter322) oprot.writeString(viter323) oprot.writeMapEnd() @@ -6824,7 +6824,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6898,7 +6898,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -6945,7 +6945,7 @@ if ftype == TType.LIST: self.rowBatches = [] (_etype327, _size324) = iprot.readListBegin() - for _i328 in xrange(_size324): + for _i328 in range(_size324): _elem329 = BatchMutation() _elem329.read(iprot) self.rowBatches.append(_elem329) @@ -6956,7 +6956,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype331, _vtype332, _size330 ) = iprot.readMapBegin() - for _i334 in xrange(_size330): + for _i334 in range(_size330): _key335 = iprot.readString(); _val336 = iprot.readString(); self.attributes[_key335] = _val336 @@ -6987,7 +6987,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter338,viter339 in self.attributes.items(): + for kiter338,viter339 in list(self.attributes.items()): oprot.writeString(kiter338) oprot.writeString(viter339) oprot.writeMapEnd() @@ -7001,7 +7001,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7075,7 +7075,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7125,7 +7125,7 @@ if ftype == TType.LIST: self.rowBatches = [] (_etype343, _size340) = iprot.readListBegin() - for _i344 in xrange(_size340): + for _i344 in range(_size340): _elem345 = BatchMutation() _elem345.read(iprot) self.rowBatches.append(_elem345) @@ -7141,7 +7141,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype347, _vtype348, _size346 ) = iprot.readMapBegin() - for _i350 in xrange(_size346): + for _i350 in range(_size346): _key351 = iprot.readString(); _val352 = iprot.readString(); self.attributes[_key351] = _val352 @@ -7176,7 +7176,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter354,viter355 in self.attributes.items(): + for kiter354,viter355 in list(self.attributes.items()): oprot.writeString(kiter354) oprot.writeString(viter355) oprot.writeMapEnd() @@ -7190,7 +7190,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7264,7 +7264,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7360,7 +7360,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7445,7 +7445,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7505,7 +7505,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype357, _vtype358, _size356 ) = iprot.readMapBegin() - for _i360 in xrange(_size356): + for _i360 in range(_size356): _key361 = iprot.readString(); _val362 = iprot.readString(); self.attributes[_key361] = _val362 @@ -7537,7 +7537,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter363,viter364 in self.attributes.items(): + for kiter363,viter364 in list(self.attributes.items()): oprot.writeString(kiter363) oprot.writeString(viter364) oprot.writeMapEnd() @@ -7551,7 +7551,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7612,7 +7612,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7680,7 +7680,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype366, _vtype367, _size365 ) = iprot.readMapBegin() - for _i369 in xrange(_size365): + for _i369 in range(_size365): _key370 = iprot.readString(); _val371 = iprot.readString(); self.attributes[_key370] = _val371 @@ -7716,7 +7716,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter372,viter373 in self.attributes.items(): + for kiter372,viter373 in list(self.attributes.items()): oprot.writeString(kiter372) oprot.writeString(viter373) oprot.writeMapEnd() @@ -7730,7 +7730,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7791,7 +7791,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7843,7 +7843,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype375, _vtype376, _size374 ) = iprot.readMapBegin() - for _i378 in xrange(_size374): + for _i378 in range(_size374): _key379 = iprot.readString(); _val380 = iprot.readString(); self.attributes[_key379] = _val380 @@ -7871,7 +7871,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter381,viter382 in self.attributes.items(): + for kiter381,viter382 in list(self.attributes.items()): oprot.writeString(kiter381) oprot.writeString(viter382) oprot.writeMapEnd() @@ -7885,7 +7885,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -7946,7 +7946,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8007,7 +8007,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8068,7 +8068,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8104,7 +8104,7 @@ if ftype == TType.LIST: self.increments = [] (_etype386, _size383) = iprot.readListBegin() - for _i387 in xrange(_size383): + for _i387 in range(_size383): _elem388 = TIncrement() _elem388.read(iprot) self.increments.append(_elem388) @@ -8137,7 +8137,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8198,7 +8198,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8258,7 +8258,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype391, _vtype392, _size390 ) = iprot.readMapBegin() - for _i394 in xrange(_size390): + for _i394 in range(_size390): _key395 = iprot.readString(); _val396 = iprot.readString(); self.attributes[_key395] = _val396 @@ -8290,7 +8290,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter397,viter398 in self.attributes.items(): + for kiter397,viter398 in list(self.attributes.items()): oprot.writeString(kiter397) oprot.writeString(viter398) oprot.writeMapEnd() @@ -8304,7 +8304,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8365,7 +8365,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8418,7 +8418,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype400, _vtype401, _size399 ) = iprot.readMapBegin() - for _i403 in xrange(_size399): + for _i403 in range(_size399): _key404 = iprot.readString(); _val405 = iprot.readString(); self.attributes[_key404] = _val405 @@ -8446,7 +8446,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter406,viter407 in self.attributes.items(): + for kiter406,viter407 in list(self.attributes.items()): oprot.writeString(kiter406) oprot.writeString(viter407) oprot.writeMapEnd() @@ -8460,7 +8460,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8532,7 +8532,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8590,7 +8590,7 @@ if ftype == TType.LIST: self.columns = [] (_etype411, _size408) = iprot.readListBegin() - for _i412 in xrange(_size408): + for _i412 in range(_size408): _elem413 = iprot.readString(); self.columns.append(_elem413) iprot.readListEnd() @@ -8600,7 +8600,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype415, _vtype416, _size414 ) = iprot.readMapBegin() - for _i418 in xrange(_size414): + for _i418 in range(_size414): _key419 = iprot.readString(); _val420 = iprot.readString(); self.attributes[_key419] = _val420 @@ -8635,7 +8635,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter422,viter423 in self.attributes.items(): + for kiter422,viter423 in list(self.attributes.items()): oprot.writeString(kiter422) oprot.writeString(viter423) oprot.writeMapEnd() @@ -8649,7 +8649,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8721,7 +8721,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8788,7 +8788,7 @@ if ftype == TType.LIST: self.columns = [] (_etype427, _size424) = iprot.readListBegin() - for _i428 in xrange(_size424): + for _i428 in range(_size424): _elem429 = iprot.readString(); self.columns.append(_elem429) iprot.readListEnd() @@ -8798,7 +8798,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype431, _vtype432, _size430 ) = iprot.readMapBegin() - for _i434 in xrange(_size430): + for _i434 in range(_size430): _key435 = iprot.readString(); _val436 = iprot.readString(); self.attributes[_key435] = _val436 @@ -8837,7 +8837,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter438,viter439 in self.attributes.items(): + for kiter438,viter439 in list(self.attributes.items()): oprot.writeString(kiter438) oprot.writeString(viter439) oprot.writeMapEnd() @@ -8851,7 +8851,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8923,7 +8923,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -8978,7 +8978,7 @@ if ftype == TType.LIST: self.columns = [] (_etype443, _size440) = iprot.readListBegin() - for _i444 in xrange(_size440): + for _i444 in range(_size440): _elem445 = iprot.readString(); self.columns.append(_elem445) iprot.readListEnd() @@ -8988,7 +8988,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype447, _vtype448, _size446 ) = iprot.readMapBegin() - for _i450 in xrange(_size446): + for _i450 in range(_size446): _key451 = iprot.readString(); _val452 = iprot.readString(); self.attributes[_key451] = _val452 @@ -9023,7 +9023,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter454,viter455 in self.attributes.items(): + for kiter454,viter455 in list(self.attributes.items()): oprot.writeString(kiter454) oprot.writeString(viter455) oprot.writeMapEnd() @@ -9037,7 +9037,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9109,7 +9109,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9170,7 +9170,7 @@ if ftype == TType.LIST: self.columns = [] (_etype459, _size456) = iprot.readListBegin() - for _i460 in xrange(_size456): + for _i460 in range(_size456): _elem461 = iprot.readString(); self.columns.append(_elem461) iprot.readListEnd() @@ -9185,7 +9185,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype463, _vtype464, _size462 ) = iprot.readMapBegin() - for _i466 in xrange(_size462): + for _i466 in range(_size462): _key467 = iprot.readString(); _val468 = iprot.readString(); self.attributes[_key467] = _val468 @@ -9224,7 +9224,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter470,viter471 in self.attributes.items(): + for kiter470,viter471 in list(self.attributes.items()): oprot.writeString(kiter470) oprot.writeString(viter471) oprot.writeMapEnd() @@ -9238,7 +9238,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9310,7 +9310,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9380,7 +9380,7 @@ if ftype == TType.LIST: self.columns = [] (_etype475, _size472) = iprot.readListBegin() - for _i476 in xrange(_size472): + for _i476 in range(_size472): _elem477 = iprot.readString(); self.columns.append(_elem477) iprot.readListEnd() @@ -9395,7 +9395,7 @@ if ftype == TType.MAP: self.attributes = {} (_ktype479, _vtype480, _size478 ) = iprot.readMapBegin() - for _i482 in xrange(_size478): + for _i482 in range(_size478): _key483 = iprot.readString(); _val484 = iprot.readString(); self.attributes[_key483] = _val484 @@ -9438,7 +9438,7 @@ if self.attributes is not None: oprot.writeFieldBegin('attributes', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.attributes)) - for kiter486,viter487 in self.attributes.items(): + for kiter486,viter487 in list(self.attributes.items()): oprot.writeString(kiter486) oprot.writeString(viter487) oprot.writeMapEnd() @@ -9452,7 +9452,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9524,7 +9524,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9584,7 +9584,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9625,7 +9625,7 @@ if ftype == TType.LIST: self.success = [] (_etype491, _size488) = iprot.readListBegin() - for _i492 in xrange(_size488): + for _i492 in range(_size488): _elem493 = TRowResult() _elem493.read(iprot) self.success.append(_elem493) @@ -9678,7 +9678,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for keyRefactoringTool: Refactored ./happybase/connection.py , value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9750,7 +9750,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9791,7 +9791,7 @@ if ftype == TType.LIST: self.success = [] (_etype498, _size495) = iprot.readListBegin() - for _i499 in xrange(_size495): + for _i499 in range(_size495): _elem500 = TRowResult() _elem500.read(iprot) self.success.append(_elem500) @@ -9844,7 +9844,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9904,7 +9904,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -9978,7 +9978,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -10062,7 +10062,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -10100,7 +10100,7 @@ if ftype == TType.LIST: self.success = [] (_etype505, _size502) = iprot.readListBegin() - for _i506 in xrange(_size502): + for _i506 in range(_size502): _elem507 = TCell() _elem507.read(iprot) self.success.append(_elem507) @@ -10143,7 +10143,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -10203,7 +10203,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): @@ -10276,7 +10276,7 @@ def __repr__(self): L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] + for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): --- ./happybase/connection.py (original) +++ ./happybase/connection.py (refactored) @@ -92,13 +92,13 @@ if transport not in THRIFT_TRANSPORTS: raise ValueError("'transport' must be one of %s" - % ", ".join(THRIFT_TRANSPORTS.keys())) + % ", ".join(list(THRIFT_TRANSPORTS.keys()))) if table_prefix is not None \ - and not isinstance(table_prefix, basestring): + and not isinstance(table_prefix, str): raise TypeError("'table_prefix' must be a string") - if not isinstance(table_prefix_separator, basestring): + if not isinstance(table_prefix_separator, str): raise TypeError("'table_prefix_separator' must be a string") if compat not in COMPAT_MODES: @@ -266,12 +266,12 @@ % name) column_descriptors = [] - for cf_name, options in families.iteritems(): + for cf_name, options in families.items(): if options is None: RefactoringTool: Refactored ./happybase/batch.py RefactoringTool: No changes to ./happybase/_version.py RefactoringTool: No changes to ./happybase/__init__.py RefactoringTool: Refactored ./doc/conf.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./tests/test_util.py RefactoringTool: ./tests/test_api.py RefactoringTool: ./happybase/util.py RefactoringTool: ./happybase/table.py RefactoringTool: ./happybase/pool.py RefactoringTool: ./happybase/hbase/ttypes.py RefactoringTool: ./happybase/hbase/constants.py RefactoringTool: ./happybase/hbase/__init__.py RefactoringTool: ./happybase/hbase/Hbase.py RefactoringTool: ./happybase/connection.py RefactoringTool: ./happybase/batch.py RefactoringTool: ./happybase/_version.py RefactoringTool: ./happybase/__init__.py RefactoringTool: ./doc/conf.py options = dict() kwargs = dict() - for option_name, value in options.iteritems(): + for option_name, value in options.items(): kwargs[pep8_to_camel_case(option_name)] = value if not cf_name.endswith(':'): --- ./happybase/batch.py (original) +++ ./happybase/batch.py (refactored) @@ -45,7 +45,7 @@ def send(self): """Send the batch to the server.""" - bms = [BatchMutation(row, m) for row, m in self._mutations.iteritems()] + bms = [BatchMutation(row, m) for row, m in self._mutations.items()] if not bms: return @@ -80,7 +80,7 @@ column=column, value=value, writeToWAL=wal) - for column, value in data.iteritems()) + for column, value in data.items()) self._mutation_count += len(data) if self._batch_size and self._mutation_count >= self._batch_size: --- ./doc/conf.py (original) +++ ./doc/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'HappyBase' -copyright = u'2012' +project = 'HappyBase' +copyright = '2012' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.36899 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-happybase-0.8 + /usr/bin/python3 setup.py build Warning: 'classifiers' should be a list, got type 'tuple' running build running build_py creating build creating build/lib creating build/lib/happybase copying happybase/util.py -> build/lib/happybase copying happybase/table.py -> build/lib/happybase copying happybase/pool.py -> build/lib/happybase copying happybase/connection.py -> build/lib/happybase copying happybase/batch.py -> build/lib/happybase copying happybase/_version.py -> build/lib/happybase copying happybase/__init__.py -> build/lib/happybase creating build/lib/happybase/hbase copying happybase/hbase/ttypes.py -> build/lib/happybase/hbase copying happybase/hbase/constants.py -> build/lib/happybase/hbase copying happybase/hbase/__init__.py -> build/lib/happybase/hbase copying happybase/hbase/Hbase.py -> build/lib/happybase/hbase + /usr/bin/python3 setup.py build_sphinx Warning: 'classifiers' should be a list, got type 'tuple' running build_sphinx Running Sphinx v2.2.0 making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0 po files that are out of date building [html]: targets for 9 source files that are out of date updating environment: [new config] 9 added, 0 changed, 0 removed reading sources... [ 11%] api reading sources... [ 22%] development reading sources... [ 33%] faq reading sources... [ 44%] index reading sources... [ 55%] installation reading sources... [ 66%] license reading sources... [ 77%] news reading sources... [ 88%] todo reading sources... [100%] user looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 11%] api writing output... [ 22%] development writing output... [ 33%] faq writing output... [ 44%] index writing output... [ 55%] installation writing output... [ 66%] license writing output... [ 77%] news writing output... [ 88%] todo writing output... [100%] user generating indices... genindexdone writing additional pages... searchdone copying static files... ... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 1 warning. The HTML pages are in doc/build/html. /usr/lib/python3/site-packages/sphinx/events.py:103: RemovedInSphinx30Warning: autodoc_default_flags is now deprecated. Please use autodoc_default_options instead. results.append(callback(self.app, *args)) + rm doc/build/html/.buildinfo + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.6888 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-happybase-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-happybase-buildroot + cd python3-module-happybase-0.8 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-happybase-buildroot --force Warning: 'classifiers' should be a list, got type 'tuple' running install running install_lib creating /usr/src/tmp/python3-module-happybase-buildroot creating /usr/src/tmp/python3-module-happybase-buildroot/usr creating /usr/src/tmp/python3-module-happybase-buildroot/usr/lib creating /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase creating /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase copying build/lib/happybase/hbase/Hbase.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase copying build/lib/happybase/hbase/__init__.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase copying build/lib/happybase/hbase/constants.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase copying build/lib/happybase/hbase/ttypes.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase copying build/lib/happybase/__init__.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/_version.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/batch.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/connection.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/pool.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/table.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase copying build/lib/happybase/util.py -> /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py to Hbase.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/constants.py to constants.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/ttypes.py to ttypes.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/_version.py to _version.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/batch.py to batch.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py to connection.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/pool.py to pool.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py to table.cpython-37.pyc byte-compiling /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py to util.cpython-37.pyc running install_egg_info running egg_info writing happybase.egg-info/PKG-INFO writing dependency_links to happybase.egg-info/dependency_links.txt writing requirements to happybase.egg-info/requires.txt writing top-level names to happybase.egg-info/top_level.txt reading manifest file 'happybase.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'happybase.egg-info/SOURCES.txt' Copying happybase.egg-info to /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase-0.8-py3.7.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-happybase-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-happybase-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-happybase-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-happybase-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-happybase-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-happybase-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-happybase-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-happybase-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-happybase-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/_version.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/batch.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/connection.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/pool.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/table.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__pycache__/util.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__pycache__/Hbase.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__pycache__/constants.cpython-37.pyc unlink /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__pycache__/ttypes.cpython-37.pyc compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/constants.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/ttypes.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/_version.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/batch.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/pool.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-happybase-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/constants.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/ttypes.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/_version.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/batch.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/pool.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-happybase-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/constants.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/ttypes.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/_version.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/batch.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/pool.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py compile /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/happybase/__pycache__/util.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/util.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/table.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/table.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/pool.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/pool.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/connection.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/connection.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/batch.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/batch.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/_version.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/_version.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/ttypes.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/ttypes.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/constants.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/constants.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/constants.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/constants.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/__init__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/happybase/hbase/__pycache__/Hbase.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/happybase/hbase/__pycache__/Hbase.cpython-37.pyc' Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.76871 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-happybase-0.8 + /usr/bin/python3 setup.py test Warning: 'classifiers' should be a list, got type 'tuple' running test running egg_info writing happybase.egg-info/PKG-INFO writing dependency_links to happybase.egg-info/dependency_links.txt deleting happybase.egg-info/requires.txt writing top-level names to happybase.egg-info/top_level.txt reading manifest file 'happybase.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'happybase.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + exit 0 Processing files: python3-module-happybase-0.8-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.2387 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-happybase-0.8 + DOCDIR=/usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + /bin/mkdir -p /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + cp -prL LICENSE.rst README.rst /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + chmod -R go-w /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + chmod -R a+rX /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-0.8 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.qtUSd6 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.SUyNQ4 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/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py: line=6 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/__init__.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/batch.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py: line=13 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py: line=14 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py: line=15 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/connection.py: line=16 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/Hbase.py: line=15 IGNORE (for REQ=slight and deep=8) module=thrift.protocol /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/constants.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/hbase/ttypes.py: line=14 IGNORE (for REQ=slight and deep=8) module=thrift.protocol /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/pool.py: line=13 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/table.py: line=12 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py: line=14 IGNORE (for REQ=slight and deep=8) module=collections /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-happybase-buildroot/usr/lib/python3/site-packages/happybase/util.py: line=18 IGNORE (for REQ=slight and deep=12) module=ordereddict Provides: python3(happybase), python3(happybase._version), python3(happybase.batch), python3(happybase.connection), python3(happybase.hbase), python3(happybase.hbase.Hbase), python3(happybase.hbase.constants), python3(happybase.hbase.ttypes), python3(happybase.pool), python3(happybase.table), python3(happybase.util) Requires: python3-module-thrift, /usr/lib/python3/site-packages, python3(collections) < 0, python3(contextlib) < 0, python3(logging) < 0, python3(numbers) < 0, python3(operator) < 0, python3(queue) < 0, python3(re) < 0, python3(socket) < 0, python3(struct) < 0, python3(threading) < 0, python3(thrift.Thrift) < 0, python3(thrift.protocol) < 0, python3(thrift.transport) < 0, python3(thrift.transport.TSocket) < 0, python3(thrift.transport.TTransport) < 0 Processing files: python3-module-happybase-docs-0.8-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.55690 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-happybase-0.8 + DOCDIR=/usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + /bin/mkdir -p /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + cp -prL doc/build/html /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + chmod -R go-w /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + chmod -R a+rX /usr/src/tmp/python3-module-happybase-buildroot/usr/share/doc/python3-module-happybase-docs-0.8 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UCvEd5 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.v0FMy3 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-happybase-0.8-alt3.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-happybase-docs-0.8-alt3.noarch.rpm 33.00user 1.03system 0:50.59elapsed 67%CPU (0avgtext+0avgdata 147720maxresident)k 0inputs+0outputs (0major+374948minor)pagefaults 0swaps 42.12user 4.56system 1:08.33elapsed 68%CPU (0avgtext+0avgdata 147720maxresident)k 0inputs+0outputs (0major+823925minor)pagefaults 0swaps